|
GigaSpaces XAP 10.0.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openspaces.events.polling.trigger.ReadTriggerOperationHandler
public class ReadTriggerOperationHandler
A trigger operation handler that performs read based on the provided template and returns its result.
Constructor Summary | |
---|---|
ReadTriggerOperationHandler()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ReadTriggerOperationHandler()
Method Detail |
---|
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.
TriggerOperationHandler.isUseTriggerAsTemplate()
public boolean isUseTriggerAsTemplate()
TriggerOperationHandler
TriggerOperationHandler.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 TriggerOperationHandler
TriggerOperationHandler.isUseTriggerAsTemplate()
public Object triggerReceive(Object template, GigaSpace gigaSpace, long receiveTimeout) throws DataAccessException
GigaSpace.read(Object,long)
and returns its result.
triggerReceive
in interface TriggerOperationHandler
template
- The template to use for the receive operation.gigaSpace
- The GigaSpace interface to perform the receive operations withreceiveTimeout
- Receive timeout value
DataAccessException
public String toString()
toString
in class Object
|
GigaSpaces XAP 10.0.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |