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 the TriggerReceive(IQuery<(Of <(TData>)>), ISpaceProxy, Int64) 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.
A trigger operation handler can also control if the object returned from TriggerReceive(IQuery<(Of <(TData>)>), ISpaceProxy, Int64)
will be used as the template for the receive operation by returning true in UseTriggerAsTemplate.
If false is returned, the actual template configured in the polling event container will be used.
Declaration Syntax
C# | Visual Basic | Visual C++ | J# |
public interface ITriggerOperationHandler<TData>
Public Interface ITriggerOperationHandler(Of TData)
generic<typename TData> public interface class ITriggerOperationHandler
Generic Template Parameters
- TData
- Type of data to trigger.
Members
All Members | Methods | Properties | |||
Icon | Member | Description |
---|---|---|
TriggerReceive(IQuery<(Of <(TData>)>), ISpaceProxy, Int64) |
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.
| |
UseTriggerAsTemplate |
Gets if the object that return from the TriggerReceive(IQuery<(Of <(TData>)>), ISpaceProxy, Int64) operation should be used as the
receive template instead of the configured template.
|