Interface AsyncTransactionStatus<T>

Type Parameters:
T - The connection type.
All Superinterfaces:
io.micronaut.core.propagation.PropagatedContextElement, TransactionExecution

public interface AsyncTransactionStatus<T> extends TransactionExecution, io.micronaut.core.propagation.PropagatedContextElement
Status object for async transactions.
Since:
3.5.0
Author:
Denis Stepanov
  • Method Details

    • getConnectionStatus

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

      @NonNull default T getConnection()
      Returns:
      The current connection.
    • propagate

      default <V> V propagate(io.micronaut.core.propagation.PropagatedContext propagatedContext, Supplier<V> supplier)
      Propagated the current PropagatedContext with added connection status.
      Type Parameters:
      V - The value type
      Parameters:
      propagatedContext - The propagated context
      supplier - The supplier
      Returns:
      The value
      Since:
      5.0
    • propagate

      default <V> V propagate(Supplier<V> supplier)
      Propagated the current PropagatedContext with added connection status.
      Type Parameters:
      V - The value type
      Parameters:
      supplier - The supplier
      Returns:
      The value
      Since:
      5.0
    • propagate

      default void propagate(Runnable runnable)
      Propagated the current PropagatedContext with added connection status.
      Parameters:
      runnable - The runnable
      Since:
      5.0