Package io.micronaut.transaction.async
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 Summary
Modifier and TypeMethodDescriptiondefault T@NonNull ConnectionStatus<T> default <V> VPropagated the currentPropagatedContextwith added connection status.default voidPropagated the currentPropagatedContextwith added connection status.default <V> VPropagated the currentPropagatedContextwith added connection status.Methods inherited from interface io.micronaut.transaction.TransactionExecution
getTransactionDefinition, isCompleted, isNewTransaction, isRollbackOnly, setRollbackOnly
-
Method Details
-
getConnectionStatus
- Returns:
- The connection status.
-
getConnection
- Returns:
- The current connection.
-
propagate
default <V> V propagate(io.micronaut.core.propagation.PropagatedContext propagatedContext, Supplier<V> supplier) Propagated the currentPropagatedContextwith added connection status.- Type Parameters:
V- The value type- Parameters:
propagatedContext- The propagated contextsupplier- The supplier- Returns:
- The value
- Since:
- 5.0
-
propagate
Propagated the currentPropagatedContextwith added connection status.- Type Parameters:
V- The value type- Parameters:
supplier- The supplier- Returns:
- The value
- Since:
- 5.0
-
propagate
Propagated the currentPropagatedContextwith added connection status.- Parameters:
runnable- The runnable- Since:
- 5.0
-