Class SynchronizationCallbackCoordinatorTrackingImpl
java.lang.Object
org.hibernate.resource.transaction.backend.jta.internal.synchronization.SynchronizationCallbackCoordinatorNonTrackingImpl
org.hibernate.resource.transaction.backend.jta.internal.synchronization.SynchronizationCallbackCoordinatorTrackingImpl
- All Implemented Interfaces:
Synchronization,SynchronizationCallbackCoordinator
public class SynchronizationCallbackCoordinatorTrackingImpl
extends SynchronizationCallbackCoordinatorNonTrackingImpl
Extension of SynchronizationCallbackCoordinatorNonTrackingImpl that adds checking of whether a rollback comes from
a thread other than the application thread (thread used to register the Synchronization)
- Author:
- Steve Ebersole, Brett Meyer
-
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.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 systemMethods inherited from class org.hibernate.resource.transaction.backend.jta.internal.synchronization.SynchronizationCallbackCoordinatorNonTrackingImpl
beforeCompletion, doAfterCompletion
-
Constructor Details
-
SynchronizationCallbackCoordinatorTrackingImpl
-
-
Method Details
-
reset
public void reset()- Overrides:
resetin classSynchronizationCallbackCoordinatorNonTrackingImpl
-
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- Overrides:
afterCompletionin classSynchronizationCallbackCoordinatorNonTrackingImpl- Parameters:
status- The status of the transaction completion.
-
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- Overrides:
synchronizationRegisteredin classSynchronizationCallbackCoordinatorNonTrackingImpl
-
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- Overrides:
processAnyDelayedAfterCompletionin classSynchronizationCallbackCoordinatorNonTrackingImpl
-