java.lang.Object
org.neo4j.driver.internal.cluster.RediscoveryImpl
- All Implemented Interfaces:
Rediscovery
-
Constructor Summary
ConstructorDescriptionRediscoveryImpl
(org.neo4j.driver.internal.BoltServerAddress initialRouter, ClusterCompositionProvider provider, ServerAddressResolver resolver, Logging logging, org.neo4j.driver.internal.DomainNameResolver domainNameResolver) -
Method Summary
Modifier and TypeMethodDescriptionlookupClusterComposition
(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.List<org.neo4j.driver.internal.BoltServerAddress>
resolve()
-
Constructor Details
-
RediscoveryImpl
public RediscoveryImpl(org.neo4j.driver.internal.BoltServerAddress initialRouter, ClusterCompositionProvider provider, ServerAddressResolver resolver, Logging logging, org.neo4j.driver.internal.DomainNameResolver domainNameResolver)
-
-
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 interfaceRediscovery
- Parameters:
routingTable
- current routing table of the given database.connectionPool
- connection pool.bookmarks
- the bookmarks that are presented to the serverimpersonatedUser
- the impersonated user for cluster composition lookup, should benull
for non-impersonated requestsoverrideAuthToken
- the override auth token- Returns:
- new cluster composition and an optional set of resolved initial router addresses.
-
resolve
- Specified by:
resolve
in interfaceRediscovery
- Throws:
UnknownHostException
-