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)
.useMemoryOnlySearch
nonBlocking, 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, setUseMemoryOnlySearch
receive, setNonBlocking, setNonBlockingFactor
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)
.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
). This is a non
blocking operation.doReceiveNonBlocking
in class AbstractNonBlockingReceiveOperationHandler
DataAccessException
Copyright © GigaSpaces.