Package io.micronaut.data.connection
Interface ConnectionOperationsRegistry
@Internal
public interface ConnectionOperationsRegistry
The registry of various connection operations managers.
- Since:
- 4.0.0
- Author:
- Denis Stepanov
-
Method Summary
Modifier and TypeMethodDescription<T extends AsyncConnectionOperations<?>>
TprovideAsync
(@NonNull Class<T> connectionManagerType, @Nullable String dataSourceName) Provide async connection operations.<T extends ReactiveStreamsConnectionOperations<?>>
TprovideReactive
(@NonNull Class<T> connectionManagerType, @Nullable String dataSourceName) Provide reactive connection operations.<T extends ConnectionOperations<?>>
TprovideSynchronous
(@NonNull Class<T> connectionManagerType, @Nullable String dataSourceName) Provide synchronous connection operations.
-
Method Details
-
provideSynchronous
@NonNull <T extends ConnectionOperations<?>> T provideSynchronous(@NonNull @NonNull Class<T> connectionManagerType, @Nullable @Nullable String dataSourceName) Provide synchronous connection operations.- Type Parameters:
T
- The operations type- Parameters:
connectionManagerType
- The operations typedataSourceName
- The datasource name- Returns:
- the provided instance
-
provideReactive
@NonNull <T extends ReactiveStreamsConnectionOperations<?>> T provideReactive(@NonNull @NonNull Class<T> connectionManagerType, @Nullable @Nullable String dataSourceName) Provide reactive connection operations.- Type Parameters:
T
- The operations type- Parameters:
connectionManagerType
- The operations typedataSourceName
- The datasource name- Returns:
- the provided instance
-
provideAsync
@NonNull <T extends AsyncConnectionOperations<?>> T provideAsync(@NonNull @NonNull Class<T> connectionManagerType, @Nullable @Nullable String dataSourceName) Provide async connection operations.- Type Parameters:
T
- The operations type- Parameters:
connectionManagerType
- The operations typedataSourceName
- The datasource name- Returns:
- the provided instance
-