Class ConsistentHashAvaticaConnectionBalancer

    • Constructor Detail

      • ConsistentHashAvaticaConnectionBalancer

        public ConsistentHashAvaticaConnectionBalancer()
    • Method Detail

      • pickServer

        public Server pickServer​(Collection<Server> servers,
                                 String connectionId)
        Specified by:
        pickServer in interface AvaticaConnectionBalancer
        Parameters:
        servers - Servers to balance across
        connectionId - Connection ID to be balanced
        Returns:
        Server that connectionId should be assigned to. The process for choosing a server must be deterministic and sticky (with a fixed set of servers, the same connectionId should always be assigned to the same server)