public abstract class TransactionListenerAdapter extends Object implements TransactionListener
TransactionListener with empty
implementations. Applications can subclass this class and only override the methods for the
events of interest.| Constructor and Description |
|---|
TransactionListenerAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterCommit(TransactionEvent event)
Called after a successful commit of a transaction.
|
void |
afterFailedCommit(TransactionEvent event)
Called after an unsuccessful commit operation.
|
void |
afterRollback(TransactionEvent event)
Called after an explicit rollback of a transaction.
|
void |
close()
Called when the region containing this callback is closed or destroyed, when the cache is
closed, or when a callback is removed from a region using an
AttributesMutator. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinit, initializepublic void afterCommit(TransactionEvent event)
TransactionListenerafterCommit in interface TransactionListenerevent - the TransactionEventCacheTransactionManager.commit()public void afterFailedCommit(TransactionEvent event)
TransactionListenerafterFailedCommit in interface TransactionListenerevent - the TransactionEventCacheTransactionManager.commit()public void afterRollback(TransactionEvent event)
TransactionListenerafterRollback in interface TransactionListenerevent - the TransactionEventCacheTransactionManager.rollback(),
CacheTransactionManager.commit()public void close()
CacheCallbackAttributesMutator.
Implementations should cleanup any external resources such as database connections. Any runtime exceptions this method throws will be logged.
It is possible for this method to be called multiple times on a single callback instance, so implementations must be tolerant of this.
close in interface CacheCallbackRegionService.close(),
Region.close(),
Region.localDestroyRegion(),
Region.destroyRegion(),
AttributesMutator