public class MultiReadReceiveOperationHandler extends AbstractMemoryOnlySearchReceiveOperationHandler
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).useMemoryOnlySearchnonBlocking, nonBlockingFactor| Constructor and Description |
|---|
MultiReadReceiveOperationHandler() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
String |
toString() |
isUseMemoryOnlySearch, setUseMemoryOnlySearchreceive, setNonBlocking, setNonBlockingFactorpublic void setMaxEntries(int maxEntries)
protected Object doReceiveBlocking(Object template, GigaSpace gigaSpace, long receiveTimeout) throws org.springframework.dao.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).doReceiveBlocking in class AbstractNonBlockingReceiveOperationHandlerorg.springframework.dao.DataAccessExceptionprotected Object doReceiveNonBlocking(Object template, GigaSpace gigaSpace) throws org.springframework.dao.DataAccessException
GigaSpace.readMultiple(Object, int) using the provided
template and configured maxEntries (defaults to 50). This is a non blocking
operation.doReceiveNonBlocking in class AbstractNonBlockingReceiveOperationHandlerorg.springframework.dao.DataAccessExceptionCopyright © GigaSpaces.