Package io.micronaut.transaction
Interface TransactionOperationsRegistry
-
@Internal public interface TransactionOperationsRegistry
The registry of various transactional operations managers.- Since:
- 3.9.0
- Author:
- Denis Stepanov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends AsyncTransactionOperations<?>>
TprovideAsync(java.lang.Class<T> transactionManagerType, java.lang.String dataSourceName)
Provide async transaction operations.<T extends ReactiveTransactionOperations<?>>
TprovideReactive(java.lang.Class<T> transactionManagerType, java.lang.String dataSourceName)
Provide reactive transaction operations.<T extends TransactionOperations<?>>
TprovideSynchronous(java.lang.Class<T> transactionManagerType, java.lang.String dataSourceName)
Provide synchronous transaction operations.
-
-
-
Method Detail
-
provideSynchronous
@NonNull <T extends TransactionOperations<?>> T provideSynchronous(java.lang.Class<T> transactionManagerType, @Nullable java.lang.String dataSourceName)
Provide synchronous transaction operations.- Type Parameters:
T
- The operations type- Parameters:
transactionManagerType
- The operations typedataSourceName
- The datasource name- Returns:
- the provided instance
-
provideReactive
@NonNull <T extends ReactiveTransactionOperations<?>> T provideReactive(java.lang.Class<T> transactionManagerType, @Nullable java.lang.String dataSourceName)
Provide reactive transaction operations.- Type Parameters:
T
- The operations type- Parameters:
transactionManagerType
- The operations typedataSourceName
- The datasource name- Returns:
- the provided instance
-
provideAsync
<T extends AsyncTransactionOperations<?>> T provideAsync(java.lang.Class<T> transactionManagerType, @Nullable java.lang.String dataSourceName)
Provide async transaction operations.- Type Parameters:
T
- The operations type- Parameters:
transactionManagerType
- The operations typedataSourceName
- The datasource name- Returns:
- the provided instance
-
-