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
ConstructorsConstructorDescriptionAgroalOrderedLastSynchronizationList(TransactionSynchronizationRegistryWrapper transactionSynchronizationRegistryWrapper) -
Method Summary
Modifier and TypeMethodDescriptionvoidafterCompletion(int status) voidExceptions from beforeCompletion Synchronizations are not caught because such errors should cause the transaction to roll back.voidregisterInterposedSynchronization(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:
beforeCompletionin interfacejakarta.transaction.Synchronization
-
afterCompletion
public void afterCompletion(int status) - Specified by:
afterCompletionin interfacejakarta.transaction.Synchronization
-