|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.cache.interceptors.OrderedSynchronizationHandler
Maintains a list of Synchronization handlers. Reason is that we have to invoke certain handlers before others. See the description in SyncTxUnitTestCase.testConcurrentPuts(). For example, for synchronous replication, we have to execute the ReplicationInterceptor's afterCompletion() before the TransactionInterceptor's.
Method Summary | |
void |
afterCompletion(int status)
This method is invoked after the transaction has committed or rolled back. |
void |
beforeCompletion()
This method is invoked before the start of the commit process. |
static OrderedSynchronizationHandler (src) |
getInstance(Transaction (src) tx)
Creates a new instance of OrderedSynchronizationHandler, or fetches an existing instance. |
void |
registerAtHead(Synchronization (src) handler)
|
void |
registerAtTail(Synchronization (src) handler)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public static OrderedSynchronizationHandler (src) getInstance(Transaction (src) tx) throws SystemException (src) , RollbackException (src)
tx
-
SystemException (src)
RollbackException (src)
public void registerAtHead(Synchronization (src) handler)
public void registerAtTail(Synchronization (src) handler)
public void beforeCompletion()
Synchronization (src)
beforeCompletion
in interface Synchronization (src)
public void afterCompletion(int status)
Synchronization (src)
afterCompletion
in interface Synchronization (src)
status
- The status of the completed transaction.public java.lang.String toString()
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |