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 Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.cache.notifications.event.Event
Event.Type
 
Method Summary
 Transaction getTransaction()
           
 boolean isOriginLocal()
           
 
Methods inherited from interface org.jboss.cache.notifications.event.Event
getCache, getType, isPre
 

Method Detail

getTransaction

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.


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