public class PurgeStoreTxnListener extends TransactionListenerAdapter
| Constructor and Description |
|---|
PurgeStoreTxnListener()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCallback(PurgeStoreCallback cb)
Register a callback.
|
void |
afterCommit()
Invoked after transaction commit.
|
void |
afterRollback()
Invoked after transaction rollback.
|
void |
storePurged(java.lang.String storeName)
During the transaction somebody is responsible for
calling this.
|
beforeCommit, beforeCompletion, flushpublic void afterCommit()
TransactionListenerAdapterAny exceptions generated here will only be logged and will have no effect on the state of the transaction.
Although all transaction resources are still available, this method should be used only for cleaning up resources after a commit has occured.
afterCommit in interface TransactionListenerafterCommit in class TransactionListenerAdapterpublic void afterRollback()
TransactionListenerAdapterAny exceptions generated here will only be logged and will have no effect on the state of the transaction.
Although all transaction resources are still available, this method should be used only for cleaning up resources after a rollback has occured.
afterRollback in interface TransactionListenerafterRollback in class TransactionListenerAdapterpublic void storePurged(java.lang.String storeName)
storeName - The name of the store that has been purged.public void addCallback(PurgeStoreCallback cb)
cb - The callback.Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.