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
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
attachingObject
(CDOTransaction transaction, CDOObject object) Asynchronously executes the delegate handler'sattachingObject()
method.void
committedTransaction
(CDOTransaction transaction, CDOCommitContext commitContext) Synchronously executes the delegate handler'scommittedTransaction()
method.void
committingTransaction
(CDOTransaction transaction, CDOCommitContext commitContext) Asynchronously executes the delegate handler'scommittingTransaction()
method.final void
detachingObject
(CDOTransaction transaction, CDOObject object) Asynchronously executes the delegate handler'sdetachingObject()
method.final void
modifyingObject
(CDOTransaction transaction, CDOObject object, CDOFeatureDelta featureChange) Asynchronously executes the delegate handler'smodifyingObject()
method.void
rolledBackTransaction
(CDOTransaction transaction) Synchronously executes the delegate handler'srolledBackTransaction()
method.protected void
Should 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:
attachingObject
in interfaceCDOTransactionHandler1
-
detachingObject
Asynchronously executes the delegate handler'sdetachingObject()
method.- Specified by:
detachingObject
in interfaceCDOTransactionHandler1
-
modifyingObject
public final void modifyingObject(CDOTransaction transaction, CDOObject object, CDOFeatureDelta featureChange) Asynchronously executes the delegate handler'smodifyingObject()
method.- Specified by:
modifyingObject
in interfaceCDOTransactionHandler1
-
committingTransaction
Asynchronously executes the delegate handler'scommittingTransaction()
method.- Specified by:
committingTransaction
in interfaceCDOTransactionHandler2
-
committedTransaction
Synchronously executes the delegate handler'scommittedTransaction()
method.- Specified by:
committedTransaction
in interfaceCDOTransactionHandler2
-
rolledBackTransaction
Synchronously executes the delegate handler'srolledBackTransaction()
method.- Specified by:
rolledBackTransaction
in interfaceCDOTransactionHandler2
-
runAsync
Should be overridden if you want to use different threading mechanism.
-