|
GigaSpaces XAP 7.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openspaces.events.polling.receive.AbstractNonBlockingReceiveOperationHandler org.openspaces.events.polling.receive.MultiExclusiveReadReceiveOperationHandler
public class MultiExclusiveReadReceiveOperationHandler
First tries and perform a GigaSpace.readMultiple(Object,int)
using
the provided template and configured maxEntries (defaults to 50
). If no values
are returned, will perform a blocking read operation using
GigaSpace.read(Object,long)
.
Read operations are performed under an exclusive read lock which mimics the similar behavior as take without actually taking the entry from the space.
Constructor Summary | |
---|---|
MultiExclusiveReadReceiveOperationHandler()
|
Method Summary | |
---|---|
protected Object |
doReceiveBlocking(Object template,
GigaSpace gigaSpace,
long receiveTimeout)
First tries and perform a GigaSpace.readMultiple(Object,int)
using the provided template and configured maxEntries (defaults to 50 ). |
protected Object |
doReceiveNonBlocking(Object template,
GigaSpace gigaSpace)
Perform a GigaSpace.readMultiple(Object,int)
using the provided template and configured maxEntries (defaults to 50 ). |
void |
setMaxEntries(int maxEntries)
Sets the max entries the initial take multiple operation will perform. |
Methods inherited from class org.openspaces.events.polling.receive.AbstractNonBlockingReceiveOperationHandler |
---|
receive, setNonBlocking, setNonBlockingFactor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultiExclusiveReadReceiveOperationHandler()
Method Detail |
---|
public void setMaxEntries(int maxEntries)
protected Object doReceiveBlocking(Object template, GigaSpace gigaSpace, long receiveTimeout) throws DataAccessException
GigaSpace.readMultiple(Object,int)
using the provided template and configured maxEntries (defaults to 50
). If no
values are returned, will perform a blocking read operation using
GigaSpace.read(Object,long)
.
Read operations are performed under an exclusive read lock which mimics the similar behavior as take without actually taking the entry from the space.
doReceiveBlocking
in class AbstractNonBlockingReceiveOperationHandler
DataAccessException
protected Object doReceiveNonBlocking(Object template, GigaSpace gigaSpace) throws DataAccessException
GigaSpace.readMultiple(Object,int)
using the provided template and configured maxEntries (defaults to 50
).
Read operations are performed under an exclusive read lock which mimics the similar behavior as take without actually taking the entry from the space.
doReceiveNonBlocking
in class AbstractNonBlockingReceiveOperationHandler
DataAccessException
|
GigaSpaces XAP 7.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |