public class MultiTakeReceiveOperationHandler extends AbstractFifoGroupingReceiveOperationHandler
GigaSpace.takeMultiple(Object, int, int)
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, int)
.
useFifoGrouping
useMemoryOnlySearch
nonBlocking, 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,
int) 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, int)
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, setUseFifoGrouping
isUseMemoryOnlySearch, setUseMemoryOnlySearch
receive, setNonBlocking, setNonBlockingFactor
public void setMaxEntries(int maxEntries)
protected Object doReceiveBlocking(Object template, GigaSpace gigaSpace, long receiveTimeout) throws org.springframework.dao.DataAccessException
GigaSpace.takeMultiple(Object, int,
int)
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, int)
.doReceiveBlocking
in class AbstractNonBlockingReceiveOperationHandler
org.springframework.dao.DataAccessException
protected Object doReceiveNonBlocking(Object template, GigaSpace gigaSpace) throws org.springframework.dao.DataAccessException
GigaSpace.takeMultiple(Object, int, int)
using the provided template, the configured maxEntries (defaults to 50
) and the
configured fifoGroups (default to false
).doReceiveNonBlocking
in class AbstractNonBlockingReceiveOperationHandler
org.springframework.dao.DataAccessException
Copyright © GigaSpaces.