org.jboss.cache.pojo.notification.event
Class TransactionCompletedEvent
java.lang.Object
java.util.EventObject
org.jboss.cache.pojo.notification.event.Event
org.jboss.cache.pojo.notification.event.TransactionCompletedEvent
- All Implemented Interfaces:
- java.io.Serializable
public final class TransactionCompletedEvent
- extends Event
A notification that indicates a transaction completed.
- Author:
- Jason T. Greene
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Method Summary |
javax.transaction.Transaction |
getSource()
|
boolean |
isSuccessful()
Whether or not the transaction was successful. |
Methods inherited from class java.util.EventObject |
toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TransactionCompletedEvent
public TransactionCompletedEvent(NotificationContext context,
boolean successful,
boolean local)
getSource
public javax.transaction.Transaction getSource()
- Overrides:
getSource
in class java.util.EventObject
isSuccessful
public boolean isSuccessful()
- Whether or not the transaction was successful.
- Returns:
- success boolean