Class RediscoveryImpl

java.lang.Object
org.neo4j.driver.internal.cluster.RediscoveryImpl
All Implemented Interfaces:
Rediscovery

public class RediscoveryImpl extends Object implements Rediscovery
  • Constructor Details

  • Method Details

    • lookupClusterComposition

      public CompletionStage<ClusterCompositionLookupResult> lookupClusterComposition(RoutingTable routingTable, ConnectionPool connectionPool, Set<Bookmark> bookmarks, String impersonatedUser, AuthToken overrideAuthToken)
      Given a database and its current routing table, and the global connection pool, use the global cluster composition provider to fetch a new cluster composition, which would be used to update the routing table of the given database and global connection pool.
      Specified by:
      lookupClusterComposition in interface Rediscovery
      Parameters:
      routingTable - current routing table of the given database.
      connectionPool - connection pool.
      bookmarks - the bookmarks that are presented to the server
      impersonatedUser - the impersonated user for cluster composition lookup, should be null for non-impersonated requests
      overrideAuthToken - the override auth token
      Returns:
      new cluster composition and an optional set of resolved initial router addresses.
    • resolve

      public List<org.neo4j.driver.internal.BoltServerAddress> resolve() throws UnknownHostException
      Specified by:
      resolve in interface Rediscovery
      Throws:
      UnknownHostException