GigaSpaces XAP.NET Documentation
AddBatchListener<(Of <(T>)>) Method (query, listener)
Class LibraryGigaSpaces.Core.EventsIDataEventSessionAddBatchListener<(Of <(T>)>)(IQuery<(Of <(T>)>), EventHandler<(Of <(SpaceBatchDataEventArgs<(Of <(T>)>)>)>))
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#
IEventRegistration AddBatchListener<T>(
	IQuery<T> query,
	EventHandler<SpaceBatchDataEventArgs<T>> listener
)
Function AddBatchListener(Of T) ( _
	query As IQuery(Of T), _
	listener As EventHandler(Of SpaceBatchDataEventArgs(Of T)) _
) As IEventRegistration
generic<typename T>
IEventRegistration^ AddBatchListener(
	IQuery<T>^ query, 
	EventHandler<SpaceBatchDataEventArgs<T>^>^ listener
)
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
query (IQuery<(Of <(T>)>))
The query used for matching.
listener (EventHandler<(Of <(SpaceBatchDataEventArgs<(Of <(T>)>)>)>))
The listener which will handle notifications.
Return Value
An event registration token.
Exceptions
ExceptionCondition
SqlQueryExceptionThe query template is an illegal SqlQuery.

Assembly: GigaSpaces.Core (Module: GigaSpaces.Core) Version: 10.2.0.0 (10.2.1.14000)