java.lang.Object
org.neo4j.driver.internal.cluster.RoutingTableHandlerImpl
- All Implemented Interfaces:
RoutingTableHandler
,org.neo4j.driver.internal.RoutingErrorHandler
-
Constructor Summary
ConstructorDescriptionRoutingTableHandlerImpl
(RoutingTable routingTable, Rediscovery rediscovery, ConnectionPool connectionPool, RoutingTableRegistry routingTableRegistry, Logging logging, long routingTablePurgeDelayMs) -
Method Summary
Modifier and TypeMethodDescriptionensureRoutingTable
(ConnectionContext context) boolean
void
onConnectionFailure
(org.neo4j.driver.internal.BoltServerAddress address) void
onWriteFailure
(org.neo4j.driver.internal.BoltServerAddress address) Set<org.neo4j.driver.internal.BoltServerAddress>
servers()
updateRoutingTable
(ClusterCompositionLookupResult compositionLookupResult)
-
Constructor Details
-
RoutingTableHandlerImpl
public RoutingTableHandlerImpl(RoutingTable routingTable, Rediscovery rediscovery, ConnectionPool connectionPool, RoutingTableRegistry routingTableRegistry, Logging logging, long routingTablePurgeDelayMs)
-
-
Method Details
-
onConnectionFailure
public void onConnectionFailure(org.neo4j.driver.internal.BoltServerAddress address) - Specified by:
onConnectionFailure
in interfaceorg.neo4j.driver.internal.RoutingErrorHandler
-
onWriteFailure
public void onWriteFailure(org.neo4j.driver.internal.BoltServerAddress address) - Specified by:
onWriteFailure
in interfaceorg.neo4j.driver.internal.RoutingErrorHandler
-
ensureRoutingTable
- Specified by:
ensureRoutingTable
in interfaceRoutingTableHandler
-
updateRoutingTable
public CompletionStage<RoutingTable> updateRoutingTable(ClusterCompositionLookupResult compositionLookupResult) - Specified by:
updateRoutingTable
in interfaceRoutingTableHandler
-
servers
- Specified by:
servers
in interfaceRoutingTableHandler
-
isRoutingTableAged
public boolean isRoutingTableAged()- Specified by:
isRoutingTableAged
in interfaceRoutingTableHandler
-
routingTable
- Specified by:
routingTable
in interfaceRoutingTableHandler
-