Performs the actual receive operation. Return values allowed are single object or an array of objects.
Declaration Syntax
C# | Visual Basic | Visual C++ | J# |
public TData Receive( IQuery<TData> template, ISpaceProxy proxy, ITransaction tx, long receiveTimeout )
Public Function Receive ( _ template As IQuery(Of TData), _ proxy As ISpaceProxy, _ tx As ITransaction, _ receiveTimeout As Long _ ) As TData
public: virtual TData Receive( IQuery<TData>^ template, ISpaceProxy^ proxy, ITransaction^ tx, long long receiveTimeout ) sealed
public final TData Receive( IQuery<TData> template, ISpaceProxy proxy, ITransaction tx, long receiveTimeout )
Parameters
- proxy (ISpaceProxy)
- The proxy to execute the operation on.
- tx (ITransaction)
- Operation's transaction context, can be null.
- receiveTimeout (Int64)
- Operation's receive timeout
Return Value
An object that will be passed to the event listener, null result doesn't trigger an event.