org.openspaces.events
Interface SpaceDataEventListener<T>
- All Known Subinterfaces:
- NotifyTypeProvider
- All Known Implementing Classes:
- AbstractReflectionEventListenerAdapter, AbstractResultEventListenerAdapter, AnnotationEventListenerAdapter, ArchivePollingContainer, MethodEventListenerAdapter, SpaceRemotingServiceExporter, TaskExecutorEventListenerAdapter
public interface SpaceDataEventListener<T>
A Space data event listener interface allowing for reception of events triggered by different
container types. Note, changing the container types should be just a matter of configuration, with
the event handling code remaining the same. For simplified, Pojo like, event listeners see the
adapter package.
- Author:
- kimchy
- See Also:
MethodEventListenerAdapter
,
AnnotationEventListenerAdapter
onEvent
void onEvent(T data,
GigaSpace gigaSpace,
TransactionStatus txStatus,
Object source)
- An event callback with the actual data object of the event.
- Parameters:
data
- The actual data object of the eventgigaSpace
- A GigaSpace instance that can be used to perform additional operations against the
spacetxStatus
- An optional transaction status allowing to rollback a transaction programmaticallysource
- Optional additional data or the actual source event data object (where relevant)
Copyright © GigaSpaces.