Class ReactiveNeo4jClient.Builder
java.lang.Object
org.springframework.data.neo4j.core.ReactiveNeo4jClient.Builder
- Enclosing interface:
ReactiveNeo4jClient
@API(status=STABLE,
since="6.2")
public static final class ReactiveNeo4jClient.Builder
extends Object
A builder for
reactive Neo4j clients.- Since:
- 6.0
- Author:
- Michael J. Simons
-
Method Summary
Modifier and TypeMethodDescriptionbuild()withDatabaseSelectionProvider(@Nullable ReactiveDatabaseSelectionProvider databaseSelectionProvider) Configures the database selection provider.withNeo4jBookmarkManager(@Nullable Neo4jBookmarkManager bookmarkManager) Configures theNeo4jBookmarkManagerto use.withNeo4jConversions(@Nullable Neo4jConversions neo4jConversions) Configures the set ofNeo4jConversionsto use.withUserSelectionProvider(@Nullable ReactiveUserSelectionProvider impersonatedUserProvider) Configures a provider for impersonated users.
-
Method Details
-
withDatabaseSelectionProvider
public ReactiveNeo4jClient.Builder withDatabaseSelectionProvider(@Nullable ReactiveDatabaseSelectionProvider databaseSelectionProvider) Configures the database selection provider. Make sure to use the same instance as for a possibleNeo4jTransactionManager. During runtime, it will be checked if a call is made for the same database when happening in a managed transaction.- Parameters:
databaseSelectionProvider- the database selection provider- Returns:
- the builder
-
withUserSelectionProvider
public ReactiveNeo4jClient.Builder withUserSelectionProvider(@Nullable ReactiveUserSelectionProvider impersonatedUserProvider) Configures a provider for impersonated users. Make sure to use the same instance as for a possibleNeo4jTransactionManager. During runtime, it will be checked if a call is made for the same user when happening in a managed transaction.- Parameters:
impersonatedUserProvider- the provider for impersonated users- Returns:
- the builder
-
withNeo4jConversions
public ReactiveNeo4jClient.Builder withNeo4jConversions(@Nullable Neo4jConversions neo4jConversions) Configures the set ofNeo4jConversionsto use.- Parameters:
neo4jConversions- the set of conversions to use, can be null, in this case the default set is used.- Returns:
- the builder
- Since:
- 6.3.3
-
withNeo4jBookmarkManager
public ReactiveNeo4jClient.Builder withNeo4jBookmarkManager(@Nullable Neo4jBookmarkManager bookmarkManager) Configures theNeo4jBookmarkManagerto use. This should be the same instance as provided for theNeo4jTransactionManagerrespectively theReactiveNeo4jTransactionManager.- Parameters:
bookmarkManager- the Neo4jBookmarkManager instance that is shared with the transaction manager.- Returns:
- the builder
- Since:
- 7.1.2
-
build
-