public class MultiTakeReceiveOperationHandler extends AbstractFifoGroupingReceiveOperationHandler
GigaSpace.takeMultiple(Object, int, TakeModifiers)
using the provided template, the configured maxEntries (defaults to 50) and the
configured fifoGroups (default to false). If no values are returned, will perform
a blocking take operation using GigaSpace.take(Object, long, TakeModifiers).
useFifoGroupinguseMemoryOnlySearchnonBlocking, nonBlockingFactor| Constructor and Description |
|---|
MultiTakeReceiveOperationHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
doReceiveBlocking(Object template,
GigaSpace gigaSpace,
long receiveTimeout)
First tries and perform a
GigaSpace.takeMultiple(Object, int,
TakeModifiers) using the provided template, the configured maxEntries (defaults to 50)
and the configured fifoGroups (default to false). |
protected Object |
doReceiveNonBlocking(Object template,
GigaSpace gigaSpace)
Performs a non blocking
GigaSpace.takeMultiple(Object, int, TakeModifiers)
using the provided template, the configured maxEntries (defaults to 50) and the
configured fifoGroups (default to false). |
void |
setMaxEntries(int maxEntries)
Sets the max entries the initial take multiple operation will perform.
|
String |
toString() |
isUseFifoGrouping, setUseFifoGroupingisUseMemoryOnlySearch, setUseMemoryOnlySearchreceive, setNonBlocking, setNonBlockingFactorpublic void setMaxEntries(int maxEntries)
protected Object doReceiveBlocking(Object template, GigaSpace gigaSpace, long receiveTimeout) throws org.springframework.dao.DataAccessException
GigaSpace.takeMultiple(Object, int,
TakeModifiers) using the provided template, the configured maxEntries (defaults to 50)
and the configured fifoGroups (default to false). If no values are returned,
will perform a blocking take operation using GigaSpace.take(Object,
long, TakeModifiers).doReceiveBlocking in class AbstractNonBlockingReceiveOperationHandlerorg.springframework.dao.DataAccessExceptionprotected Object doReceiveNonBlocking(Object template, GigaSpace gigaSpace) throws org.springframework.dao.DataAccessException
GigaSpace.takeMultiple(Object, int, TakeModifiers)
using the provided template, the configured maxEntries (defaults to 50) and the
configured fifoGroups (default to false).doReceiveNonBlocking in class AbstractNonBlockingReceiveOperationHandlerorg.springframework.dao.DataAccessExceptionCopyright © GigaSpaces.