org.infinispan.notifications.cachelistener.event
Interface TransactionalEvent<K,V>

All Superinterfaces:
Event<K,V>
All Known Subinterfaces:
CacheEntryActivatedEvent<K,V>, CacheEntryCreatedEvent<K,V>, CacheEntryEvent<K,V>, CacheEntryEvictedEvent<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:
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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.infinispan.notifications.cachelistener.event.Event
Event.Type
 
Method Summary
 GlobalTransaction getGlobalTransaction()
           
 boolean isOriginLocal()
           
 
Methods inherited from interface org.infinispan.notifications.cachelistener.event.Event
getCache, getType, isPre
 

Method Detail

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.

-->

Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.