org.infinispan.notifications.cachelistener.event
Interface TransactionalEvent

All Superinterfaces:
Event
All Known Subinterfaces:
CacheEntryActivatedEvent, CacheEntryCreatedEvent, CacheEntryEvent, CacheEntryEvictedEvent, CacheEntryInvalidatedEvent, CacheEntryLoadedEvent, CacheEntryModifiedEvent, CacheEntryPassivatedEvent, CacheEntryRemovedEvent, CacheEntryVisitedEvent, TransactionCompletedEvent, TransactionRegisteredEvent
All Known Implementing Classes:
EventImpl

public interface TransactionalEvent
extends Event

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.

Google Analytics

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