Class ReactiveNeo4jClient.Builder

java.lang.Object
org.springframework.data.neo4j.core.ReactiveNeo4jClient.Builder
Enclosing interface:
ReactiveNeo4jClient

@API(status=STABLE, since="6.2") public static class ReactiveNeo4jClient.Builder extends Object
A builder for reactive Neo4j clients.
  • 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 possible Neo4jTransactionManager. 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 possible Neo4jTransactionManager. 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
    • build

      public ReactiveNeo4jClient build()