public class RegisteredSynchronization extends Object implements Synchronization
Synchronization
Hibernate registers when needed for JTA callbacks.
Note that we split the notion of the registered Synchronization and the processing of the Synchronization callbacks
mainly to account for "separation of concerns", but also so that the transaction engine does not have to hold
reference to the actual Synchronization that gets registered with the JTA system.Constructor and Description |
---|
RegisteredSynchronization(SynchronizationCallbackCoordinator synchronizationCallbackCoordinator) |
Modifier and Type | Method and Description |
---|---|
void |
afterCompletion(int status)
This method is called by the transaction
manager after the transaction is committed or rolled back.
|
void |
beforeCompletion()
The beforeCompletion method is called by the transaction manager prior
to the start of the two-phase transaction commit process.
|
public RegisteredSynchronization(SynchronizationCallbackCoordinator synchronizationCallbackCoordinator)
public void beforeCompletion()
Synchronization
beforeCompletion
in interface Synchronization
public void afterCompletion(int status)
Synchronization
afterCompletion
in interface Synchronization
status
- The status of the transaction completion.Copyright © 2020 JBoss by Red Hat. All rights reserved.