Interface ReceiveOperationHandler
- All Known Implementing Classes:
AbstractFifoGroupingReceiveOperationHandler,AbstractMemoryOnlySearchReceiveOperationHandler,AbstractNonBlockingReceiveOperationHandler,ExclusiveReadReceiveOperationHandler,MultiExclusiveReadReceiveOperationHandler,MultiReadReceiveOperationHandler,MultiTakeReceiveOperationHandler,SingleReadReceiveOperationHandler,SingleTakeReceiveOperationHandler
public interface ReceiveOperationHandler
Perform the actual receive operations for
SimplePollingEventListenerContainer.
Can return either a single object or an array of objects.- Author:
- kimchy
- See Also:
-
Method Summary
-
Method Details
-
receive
Object receive(Object template, GigaSpace gigaSpace, long receiveTimeout) throws org.springframework.dao.DataAccessException Performs the actual receive operation. Return values allowed are single object or an array of objects.- Parameters:
template- The template to use for the receive operation.gigaSpace- The GigaSpace interface to perform the receive operations withreceiveTimeout- Receive timeout value- Returns:
- The receive result.
nullindicating no receive occurred. Single object or an array of objects indicating the receive operation result. - Throws:
org.springframework.dao.DataAccessException
-