Allows to perform a trigger receive operation which control if the active receive operation will
be performed in a polling event container. This feature is mainly used when having polling event
operations with transactions where the trigger receive operation is performed outside of a
transaction thus reducing the creation of transactions did not perform the actual receive
operation.
If this method returns a non null value, it means
that the receive operation should take place. If it returns a null value, no receive operation will
be attempted, thus no transaction will be created.
Declaration Syntax
C# | Visual Basic | Visual C++ | J# |
public IQuery<TData> TriggerReceive( IQuery<TData> template, ISpaceProxy proxy, long receiveTimeout )
Public Function TriggerReceive ( _ template As IQuery(Of TData), _ proxy As ISpaceProxy, _ receiveTimeout As Long _ ) As IQuery(Of TData)
public: virtual IQuery<TData>^ TriggerReceive( IQuery<TData>^ template, ISpaceProxy^ proxy, long long receiveTimeout ) sealed
public final IQuery<TData> TriggerReceive( IQuery<TData> template, ISpaceProxy proxy, long receiveTimeout )
Parameters
- proxy (ISpaceProxy)
- The proxy to execute the operation on.
- receiveTimeout (Int64)
- Operation's receive timeout
Return Value
Null value when the receive operation should not be triggered, otherwise a non null value that can also
be used as the receive template if UseTriggerAsTemplate is set to true.