GigaSpaces XAP.NET Documentation
AddBatchListener<(Of <(<'T>)>)> Method (template, listener, eventType, leaseTime)
Class LibraryGigaSpaces.Core.EventsIDataEventSessionAddBatchListener<(Of <<'(T>)>>)(T, EventHandler<(Of <<'(SpaceBatchDataEventArgs<(Of <<'(T>)>>)>)>>), DataEventType, Int64)
Registers the listener to the space using the specified template. This can only be used when the IDataEventSession is created with Batch enabled.
Declaration Syntax
C#Visual BasicVisual C++J#
[ObsoleteAttribute("Since 9.7 - Data event registration with custom lease is deprecated")]
IEventRegistration AddBatchListener<T>(
	T template,
	EventHandler<SpaceBatchDataEventArgs<T>> listener,
	DataEventType eventType,
	long leaseTime
)
<ObsoleteAttribute("Since 9.7 - Data event registration with custom lease is deprecated")> _
Function AddBatchListener(Of T) ( _
	template As T, _
	listener As EventHandler(Of SpaceBatchDataEventArgs(Of T)), _
	eventType As DataEventType, _
	leaseTime As Long _
) As IEventRegistration
[ObsoleteAttribute(L"Since 9.7 - Data event registration with custom lease is deprecated")]
generic<typename T>
IEventRegistration^ AddBatchListener(
	T template, 
	EventHandler<SpaceBatchDataEventArgs<T>^>^ listener, 
	DataEventType eventType, 
	long long leaseTime
)
J# supports the use of generic APIs, but not the declaration of new ones.
Generic Template Parameters
T
Type of object to listen to.
Parameters
template (T)
The template used for matching.
listener (EventHandler<(Of <(<'SpaceBatchDataEventArgs<(Of <(<'T>)>)>>)>)>)
The listener which will handle notifications.
eventType (DataEventType)
The type of events you wish to receive notification on.
leaseTime (Int64)
The time duration in which the listener will be receiving calls.
Return Value
An event registration token.

Assembly: GigaSpaces.Core (Module: GigaSpaces.Core) Version: 14.2.0.0 (14.2.0.20400)