Class AgroalOrderedLastSynchronizationList
java.lang.Object
io.quarkus.narayana.jta.runtime.internal.tsr.AgroalOrderedLastSynchronizationList
- All Implemented Interfaces:
jakarta.transaction.Synchronization
public class AgroalOrderedLastSynchronizationList
extends Object
implements jakarta.transaction.Synchronization
-
Constructor Summary
ConstructorDescriptionAgroalOrderedLastSynchronizationList
(TransactionSynchronizationRegistryWrapper transactionSynchronizationRegistryWrapper) -
Method Summary
Modifier and TypeMethodDescriptionvoid
afterCompletion
(int status) void
Exceptions from beforeCompletion Synchronizations are not caught because such errors should cause the transaction to roll back.void
registerInterposedSynchronization
(jakarta.transaction.Synchronization synchronization) Register an interposed synchronization.
-
Constructor Details
-
AgroalOrderedLastSynchronizationList
public AgroalOrderedLastSynchronizationList(TransactionSynchronizationRegistryWrapper transactionSynchronizationRegistryWrapper)
-
-
Method Details
-
registerInterposedSynchronization
public void registerInterposedSynchronization(jakarta.transaction.Synchronization synchronization) Register an interposed synchronization. Note that synchronizations are not allowed if:- Parameters:
synchronization
- The synchronization to register- Throws:
IllegalStateException
- if the transaction is in the wrong state:- the transaction has already prepared;
- the transaction is marked rollback only
- the group that the synchronization should belong to has already been processed
-
beforeCompletion
public void beforeCompletion()Exceptions from beforeCompletion Synchronizations are not caught because such errors should cause the transaction to roll back.- Specified by:
beforeCompletion
in interfacejakarta.transaction.Synchronization
-
afterCompletion
public void afterCompletion(int status) - Specified by:
afterCompletion
in interfacejakarta.transaction.Synchronization
-