GigaSpaces XAP.NET Documentation
ITriggerOperationHandler<(Of <(<'TData>)>)> Interface
Class LibraryGigaSpaces.XAP.Events.Polling.TriggerITriggerOperationHandler<(Of <(<'TData>)>)>
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 BasicVisual C++J#
public interface ITriggerOperationHandler<TData>
Public Interface ITriggerOperationHandler(Of TData)
generic<typename TData>
public interface class ITriggerOperationHandler
J# supports the use of generic APIs, but not the declaration of new ones.
Generic Template Parameters
TData
Type of data to trigger.
Members
All MembersMethodsProperties



IconMemberDescription
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.

See Also

Assembly: GigaSpaces.Core (Module: GigaSpaces.Core) Version: 15.0.0.0 (15.0.0)