java.lang.Object
org.neo4j.driver.internal.cluster.loadbalancing.LoadBalancer
- All Implemented Interfaces:
ConnectionProvider
-
Constructor Summary
ConstructorsConstructorDescriptionLoadBalancer
(ConnectionPool connectionPool, Rediscovery rediscovery, RoutingSettings settings, LoadBalancingStrategy loadBalancingStrategy, io.netty.util.concurrent.EventExecutorGroup eventExecutorGroup, Clock clock, Logging logging) -
Method Summary
Modifier and TypeMethodDescriptionacquireConnection
(ConnectionContext context) close()
This method is only for testingThe validation of connectivity will happen with the default database.
-
Constructor Details
-
LoadBalancer
public LoadBalancer(ConnectionPool connectionPool, Rediscovery rediscovery, RoutingSettings settings, LoadBalancingStrategy loadBalancingStrategy, io.netty.util.concurrent.EventExecutorGroup eventExecutorGroup, Clock clock, Logging logging)
-
-
Method Details
-
acquireConnection
- Specified by:
acquireConnection
in interfaceConnectionProvider
-
verifyConnectivity
Description copied from interface:ConnectionProvider
The validation of connectivity will happen with the default database.- Specified by:
verifyConnectivity
in interfaceConnectionProvider
-
close
- Specified by:
close
in interfaceConnectionProvider
-
supportsMultiDb
- Specified by:
supportsMultiDb
in interfaceConnectionProvider
-
supportsSessionAuth
- Specified by:
supportsSessionAuth
in interfaceConnectionProvider
-
getRoutingTableRegistry
-
getRediscovery
This method is only for testing
-