GigaSpaces XAP.NET Documentation
TriggerReceive Method (template, proxy, receiveTimeout)
Class LibraryGigaSpaces.XAP.Events.Polling.TriggerITriggerOperationHandler<(Of <(<'TData>)>)>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.
Declaration Syntax
C#Visual BasicVisual C++J#
IQuery<TData> TriggerReceive(
	IQuery<TData> template,
	ISpaceProxy proxy,
	long receiveTimeout
)
Function TriggerReceive ( _
	template As IQuery(Of TData), _
	proxy As ISpaceProxy, _
	receiveTimeout As Long _
) As IQuery(Of TData)
IQuery<TData>^ TriggerReceive(
	IQuery<TData>^ template, 
	ISpaceProxy^ proxy, 
	long long receiveTimeout
)
IQuery<TData> TriggerReceive(
	IQuery<TData> template,
	ISpaceProxy proxy,
	long receiveTimeout
)
Parameters
template (IQuery<(Of <(<'TData>)>)>)
The template for the receive operation.
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.

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