org.openspaces.events.polling.receive
Interface ReceiveOperationHandler
- All Known Implementing Classes: 
- AbstractFifoGroupingReceiveOperationHandler, AbstractMemoryOnlySearchReceiveOperationHandler, AbstractNonBlockingReceiveOperationHandler, ExclusiveReadReceiveOperationHandler, MultiExclusiveReadReceiveOperationHandler, MultiReadReceiveOperationHandler, MultiTakeReceiveOperationHandler, SingleReadReceiveOperationHandler, SingleTakeReceiveOperationHandler
- public interface ReceiveOperationHandler 
Perform the actual receive operations for
 AbstractPollingEventListenerContainer. Can return either a
 single object or an array of objects.
- Author:
- kimchy
- See Also:
- AbstractPollingEventListenerContainer
 
receive
Object receive(Object template,
               GigaSpace gigaSpace,
               long receiveTimeout)
               throws 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 with
- receiveTimeout- Receive timeout value
- Returns:
- The receive result. nullindicating no receive occurred. Single object
         or an array of objects indicating the receive operation result.
- Throws:
- DataAccessException
 
Copyright © GigaSpaces.