Interface TransactionalEvent<K,V>

All Superinterfaces:
Event<K,V>
All Known Subinterfaces:
CacheEntryActivatedEvent<K,V>, CacheEntryCreatedEvent<K,V>, CacheEntryEvent<K,V>, CacheEntryExpiredEvent<K,V>, CacheEntryInvalidatedEvent<K,V>, CacheEntryLoadedEvent<K,V>, CacheEntryModifiedEvent<K,V>, CacheEntryPassivatedEvent<K,V>, CacheEntryRemovedEvent<K,V>, CacheEntryVisitedEvent<K,V>, TransactionCompletedEvent<K,V>, TransactionRegisteredEvent<K,V>
All Known Implementing Classes:
ClusterEvent, EventImpl

public interface TransactionalEvent<K,V> extends Event<K,V>
An event subtype that includes a transaction context - if one exists - as well as a boolean as to whether the call originated locally or remotely.
Since:
4.0
Author:
Manik Surtani
  • Method Details

    • getGlobalTransaction

      GlobalTransaction getGlobalTransaction()
      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.