public class ReadTriggerOperationHandler extends Object implements TriggerOperationHandler
| Constructor and Description |
|---|
ReadTriggerOperationHandler() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isUseTriggerAsTemplate()
Controls if the object returned from
TriggerOperationHandler.triggerReceive(Object,org.openspaces.core.GigaSpace,long) will be used as the
template for the receive operation by returning true. |
void |
setUseTriggerAsTemplate(boolean useTriggerAsTemplate)
Controls if the object returned from
triggerReceive(Object,org.openspaces.core.GigaSpace,long) will be used as the
template for the receive operation by returning true. |
String |
toString() |
Object |
triggerReceive(Object template,
GigaSpace gigaSpace,
long receiveTimeout)
Uses
GigaSpace.read(Object,long) and returns its result. |
public void setUseTriggerAsTemplate(boolean useTriggerAsTemplate)
triggerReceive(Object,org.openspaces.core.GigaSpace,long) will be used as the
template for the receive operation by returning true. If false
is returned, the actual template configured in the polling event container will be used.public boolean isUseTriggerAsTemplate()
TriggerOperationHandlerTriggerOperationHandler.triggerReceive(Object,org.openspaces.core.GigaSpace,long) will be used as the
template for the receive operation by returning true. If false
is returned, the actual template configured in the polling event container will be used.isUseTriggerAsTemplate in interface TriggerOperationHandlerTriggerOperationHandler.isUseTriggerAsTemplate()public Object triggerReceive(Object template, GigaSpace gigaSpace, long receiveTimeout) throws DataAccessException
GigaSpace.read(Object,long) and returns its result.triggerReceive in interface TriggerOperationHandlertemplate - The template to use for the receive operation.gigaSpace - The GigaSpace interface to perform the receive operations withreceiveTimeout - Receive timeout valueDataAccessExceptionCopyright © GigaSpaces.