Interface ReactiveDatabaseSelectionProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@API(status=STABLE,
since="6.0")
@FunctionalInterface
public interface ReactiveDatabaseSelectionProvider
This is the reactive version of a the
DatabaseSelectionProvider and it works in
the same way but uses reactive return types containing the target database name. An
empty mono indicates the default database.- Since:
- 6.0
- Author:
- Michael J. Simons
-
Method Summary
Modifier and TypeMethodDescriptioncreateStaticDatabaseSelectionProvider(String databaseName) Creates a statically configured database selection provider always selecting the database with the given namedatabaseName.Returns the selected database to interact with.A database selector always selecting the default database.
-
Method Details
-
createStaticDatabaseSelectionProvider
Creates a statically configured database selection provider always selecting the database with the given namedatabaseName.- Parameters:
databaseName- the database name to use, must not be null nor empty.- Returns:
- a statically configured database name provider.
-
getDefaultSelectionProvider
A database selector always selecting the default database.- Returns:
- a provider for the default database name.
-
getDatabaseSelection
Mono<DatabaseSelection> getDatabaseSelection()Returns the selected database to interact with.- Returns:
- the selected database to interact with
-