Module org.neo4j.driver
Interface LoadBalancingStrategy
- All Known Implementing Classes:
LeastConnectedLoadBalancingStrategy
public interface LoadBalancingStrategy
A facility to select most appropriate reader or writer among the given addresses for request processing.
-
Method Summary
Modifier and TypeMethodDescriptionselectReader(List<BoltServerAddress> knownReaders) Select most appropriate read address from the given array of addresses.selectWriter(List<BoltServerAddress> knownWriters) Select most appropriate write address from the given array of addresses.
-
Method Details
-
selectReader
Select most appropriate read address from the given array of addresses.- Parameters:
knownReaders- array of all known readers.- Returns:
- most appropriate reader or
nullif it can't be selected.
-
selectWriter
Select most appropriate write address from the given array of addresses.- Parameters:
knownWriters- array of all known writers.- Returns:
- most appropriate writer or
nullif it can't be selected.
-