org.jboss.cache.interceptors
Class OrderedSynchronizationHandler
java.lang.Object
   org.jboss.cache.interceptors.OrderedSynchronizationHandler
org.jboss.cache.interceptors.OrderedSynchronizationHandler
- All Implemented Interfaces: 
- Synchronization
- public class OrderedSynchronizationHandler 
- extends Object- implements Synchronization
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.
- Version:
- $Id: OrderedSynchronizationHandler.java 5400 2008-03-07 17:05:23Z manik.surtani@jboss.com $
- Author:
- Bela Ban
 
 
 
OrderedSynchronizationHandler
public OrderedSynchronizationHandler(Transaction tx)
                              throws SystemException,
                                     RollbackException
- Throws:
- SystemException
- RollbackException
registerAtHead
public void registerAtHead(Synchronization handler)
- 
 
- 
 
registerAtTail
public void registerAtTail(Synchronization handler)
- 
 
- 
 
beforeCompletion
public void beforeCompletion()
- 
- Specified by:
- beforeCompletionin interface- Synchronization
 
- 
 
afterCompletion
public void afterCompletion(int status)
- 
- Specified by:
- afterCompletionin interface- Synchronization
 
- 
 
toString
public String toString()
- 
- Overrides:
- toStringin class- Object
 
- 
 
Copyright © 2008 JBoss, a division of Red Hat. All Rights Reserved.