GigaSpaces XAP 9.7.2 API

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

Method Summary
 Object receive(Object template, GigaSpace gigaSpace, long receiveTimeout)
          Performs the actual receive operation.
 

Method Detail

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. null indicating no receive occurred. Single object or an array of objects indicating the receive operation result.
Throws:
DataAccessException

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.