org.jboss.cache.notifications.event
Interface TransactionalEvent
- All Superinterfaces:
- Event
- All Known Subinterfaces:
- NodeActivatedEvent, NodeCreatedEvent, NodeEvent, NodeEvictedEvent, NodeLoadedEvent, NodeModifiedEvent, NodeMovedEvent, NodePassivatedEvent, NodeRemovedEvent, NodeVisitedEvent, TransactionCompletedEvent, TransactionRegisteredEvent
- All Known Implementing Classes:
- EventImpl
public interface TransactionalEvent
- extends Event
An event type that includes a transaction context - if one exists - as well as a boolean as to whether the call
originated locally or remotely.
- Since:
- 2.0.0
- Author:
- Manik Surtani
Nested classes/interfaces inherited from interface org.jboss.cache.notifications.event.Event |
Event.Type |
getTransaction
javax.transaction.Transaction getTransaction()
- Returns:
- the Transaction associated with the current call. May be null if the current call is outside the
scope of a transaction.
isOriginLocal
boolean isOriginLocal()
- Returns:
- true if the call originated on the local cache instance; false if originated from a remote one.