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 Details

    • selectReader

      BoltServerAddress selectReader(List<BoltServerAddress> knownReaders)
      Select most appropriate read address from the given array of addresses.
      Parameters:
      knownReaders - array of all known readers.
      Returns:
      most appropriate reader or null if it can't be selected.
    • selectWriter

      BoltServerAddress selectWriter(List<BoltServerAddress> knownWriters)
      Select most appropriate write address from the given array of addresses.
      Parameters:
      knownWriters - array of all known writers.
      Returns:
      most appropriate writer or null if it can't be selected.