Package org.eclipse.emf.cdo.transaction
Class CDOAsyncTransactionHandler
- java.lang.Object
-
- org.eclipse.emf.cdo.transaction.CDOAsyncTransactionHandler
-
- All Implemented Interfaces:
CDOTransactionHandler,CDOTransactionHandler1,CDOTransactionHandler2,CDOTransactionHandlerBase
public class CDOAsyncTransactionHandler extends java.lang.Object implements CDOTransactionHandler
Asynchronously executes a delegate handler's pre-event methods. The delegate handler's code may access theviewwithout causing deadlocks.- Since:
- 2.0
- Author:
- Simon McDuff
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.emf.cdo.transaction.CDOTransactionHandler1
CDOTransactionHandler1.WithUndo
-
-
Constructor Summary
Constructors Constructor Description CDOAsyncTransactionHandler(CDOTransactionHandler delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattachingObject(CDOTransaction transaction, CDOObject object)Asynchronously executes the delegate handler'sattachingObject()method.voidcommittedTransaction(CDOTransaction transaction, CDOCommitContext commitContext)Synchronously executes the delegate handler'scommittedTransaction()method.voidcommittingTransaction(CDOTransaction transaction, CDOCommitContext commitContext)Asynchronously executes the delegate handler'scommittingTransaction()method.voiddetachingObject(CDOTransaction transaction, CDOObject object)Asynchronously executes the delegate handler'sdetachingObject()method.voidmodifyingObject(CDOTransaction transaction, CDOObject object, CDOFeatureDelta featureChange)Asynchronously executes the delegate handler'smodifyingObject()method.voidrolledBackTransaction(CDOTransaction transaction)Synchronously executes the delegate handler'srolledBackTransaction()method.protected voidrunAsync(java.lang.Runnable runnable)Should be overridden if you want to use different threading mechanism.
-
-
-
Constructor Detail
-
CDOAsyncTransactionHandler
public CDOAsyncTransactionHandler(CDOTransactionHandler delegate)
-
-
Method Detail
-
attachingObject
public final void attachingObject(CDOTransaction transaction, CDOObject object)
Asynchronously executes the delegate handler'sattachingObject()method.- Specified by:
attachingObjectin interfaceCDOTransactionHandler1
-
detachingObject
public final void detachingObject(CDOTransaction transaction, CDOObject object)
Asynchronously executes the delegate handler'sdetachingObject()method.- Specified by:
detachingObjectin interfaceCDOTransactionHandler1
-
modifyingObject
public final void modifyingObject(CDOTransaction transaction, CDOObject object, CDOFeatureDelta featureChange)
Asynchronously executes the delegate handler'smodifyingObject()method.- Specified by:
modifyingObjectin interfaceCDOTransactionHandler1
-
committingTransaction
public void committingTransaction(CDOTransaction transaction, CDOCommitContext commitContext)
Asynchronously executes the delegate handler'scommittingTransaction()method.- Specified by:
committingTransactionin interfaceCDOTransactionHandler2
-
committedTransaction
public void committedTransaction(CDOTransaction transaction, CDOCommitContext commitContext)
Synchronously executes the delegate handler'scommittedTransaction()method.- Specified by:
committedTransactionin interfaceCDOTransactionHandler2
-
rolledBackTransaction
public void rolledBackTransaction(CDOTransaction transaction)
Synchronously executes the delegate handler'srolledBackTransaction()method.- Specified by:
rolledBackTransactionin interfaceCDOTransactionHandler2
-
runAsync
protected void runAsync(java.lang.Runnable runnable)
Should be overridden if you want to use different threading mechanism.
-
-