Interface FailoverRequestBalancingStrategy


  • @NotThreadSafe
    public interface FailoverRequestBalancingStrategy
    Defines what servers will be selected when a smart-routed request fails. Note: this replaces deprecated FailoverRequestBalancingStrategy
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.net.SocketAddress nextServer​(java.util.Set<java.net.SocketAddress> failedServers)  
      void setServers​(java.util.Collection<java.net.SocketAddress> servers)
      Inform the strategy about the currently alive servers.
    • Method Detail

      • setServers

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

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