Package org.eclipse.emf.cdo.transaction
Class CDOAsyncTransactionHandler
java.lang.Object
org.eclipse.emf.cdo.transaction.CDOAsyncTransactionHandler
- All Implemented Interfaces:
CDOTransactionHandler,CDOTransactionHandler1,CDOTransactionHandler2,CDOTransactionHandlerBase
Asynchronously executes a delegate handler's pre-event methods. The delegate handler's code may access the
view without 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 -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.final voiddetachingObject(CDOTransaction transaction, CDOObject object) Asynchronously executes the delegate handler'sdetachingObject()method.final 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 voidShould be overridden if you want to use different threading mechanism.
-
Constructor Details
-
CDOAsyncTransactionHandler
-
-
Method Details
-
attachingObject
Asynchronously executes the delegate handler'sattachingObject()method.- Specified by:
attachingObjectin interfaceCDOTransactionHandler1
-
detachingObject
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
Asynchronously executes the delegate handler'scommittingTransaction()method.- Specified by:
committingTransactionin interfaceCDOTransactionHandler2
-
committedTransaction
Synchronously executes the delegate handler'scommittedTransaction()method.- Specified by:
committedTransactionin interfaceCDOTransactionHandler2
-
rolledBackTransaction
Synchronously executes the delegate handler'srolledBackTransaction()method.- Specified by:
rolledBackTransactionin interfaceCDOTransactionHandler2
-
runAsync
Should be overridden if you want to use different threading mechanism.
-