Class SynchronizationCallbackCoordinatorNonTrackingImpl
java.lang.Object
org.hibernate.resource.transaction.backend.jta.internal.synchronization.SynchronizationCallbackCoordinatorNonTrackingImpl
- All Implemented Interfaces:
Synchronization,SynchronizationCallbackCoordinator
- Direct Known Subclasses:
SynchronizationCallbackCoordinatorTrackingImpl
public class SynchronizationCallbackCoordinatorNonTrackingImpl
extends Object
implements SynchronizationCallbackCoordinator
Manages callbacks from the
Synchronization registered by Hibernate.- Author:
- Steve Ebersole
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoidafterCompletion(int status) This method is called by the transaction manager after the transaction is committed or rolled back.voidThe beforeCompletion method is called by the transaction manager prior to the start of the two-phase transaction commit process.protected voiddoAfterCompletion(boolean successful, boolean delayed) voidCalled by the TransactionCoordinator to allow the SynchronizationCallbackCoordinator to process any after-completion handling that it may have delayed due to thread affinityvoidreset()voidCalled by the TransactionCoordinator when it registers the Synchronization with the JTA system
-
Constructor Details
-
SynchronizationCallbackCoordinatorNonTrackingImpl
-
-
Method Details
-
reset
public void reset() -
synchronizationRegistered
public void synchronizationRegistered()Description copied from interface:SynchronizationCallbackCoordinatorCalled by the TransactionCoordinator when it registers the Synchronization with the JTA system- Specified by:
synchronizationRegisteredin interfaceSynchronizationCallbackCoordinator
-
beforeCompletion
public void beforeCompletion()Description copied from interface:SynchronizationThe beforeCompletion method is called by the transaction manager prior to the start of the two-phase transaction commit process. This call is executed with the transaction context of the transaction that is being committed.- Specified by:
beforeCompletionin interfaceSynchronization
-
afterCompletion
public void afterCompletion(int status) Description copied from interface:SynchronizationThis method is called by the transaction manager after the transaction is committed or rolled back.- Specified by:
afterCompletionin interfaceSynchronization- Parameters:
status- The status of the transaction completion.
-
doAfterCompletion
protected void doAfterCompletion(boolean successful, boolean delayed) -
processAnyDelayedAfterCompletion
public void processAnyDelayedAfterCompletion()Description copied from interface:SynchronizationCallbackCoordinatorCalled by the TransactionCoordinator to allow the SynchronizationCallbackCoordinator to process any after-completion handling that it may have delayed due to thread affinity- Specified by:
processAnyDelayedAfterCompletionin interfaceSynchronizationCallbackCoordinator
-