Interface TransactionStatus<T>

Type Parameters:
T - The native transaction type
All Superinterfaces:
TransactionExecution
All Known Subinterfaces:
InternalTransaction<T>
All Known Implementing Classes:
AbstractInternalTransaction, DefaultTransactionStatus

public interface TransactionStatus<T> extends TransactionExecution
The transaction status.
Since:
1.0.0
Author:
graemerocher, Denis Stepanov
  • Method Details

    • getTransaction

      @Nullable @Nullable Object getTransaction()
      Returns:
      The underlying transaction object if exists.
    • getConnection

      @NonNull default T getConnection()
      Returns:
      The associated connection.
    • getConnectionStatus

      @NonNull @NonNull ConnectionStatus<T> getConnectionStatus()
      Returns:
      The connection status.
      Since:
      4.0.0
    • registerSynchronization

      default void registerSynchronization(@NonNull @NonNull TransactionSynchronization synchronization)
      Register a new transaction synchronization for the current state.

      Note that synchronizations can implement the Ordered interface. They will be executed in an order according to their order value (if any).

      Parameters:
      synchronization - the synchronization object to register