Interface FailoverRequestBalancingStrategy


@NotThreadSafe public interface FailoverRequestBalancingStrategy
Defines what servers will be selected when a smart-routed request fails.
  • Method Details

    • setServers

      void setServers(Collection<SocketAddress> servers)
      Inform the strategy about the currently alive servers.
      Parameters:
      servers -
    • nextServer

      SocketAddress nextServer(Set<SocketAddress> failedServers)
      Parameters:
      failedServers -
      Returns:
      Address of the next server the request should be routed to.