Interface LoadBalancer

    • Method Detail

      • init

        void init​(Cluster cluster,
                  ClientConfig config)
        Initializes the LoadBalancer.
        Parameters:
        cluster - the Cluster this LoadBalancer uses to select members from.
        config - the ClientConfig.
      • next

        Member next()
        Returns the next member to route to.
        Returns:
        Returns the next member or null if no member is available
      • nextDataMember

        @Deprecated
        default Member nextDataMember()
        Deprecated.
        Since 5.0, the method is unused
        Returns the next data member or null if no data member is available.
        Throws:
        java.lang.UnsupportedOperationException - if the operation is not supported by this instance
        Since:
        4.2
      • canGetNextDataMember

        @Deprecated
        default boolean canGetNextDataMember()
        Deprecated.
        Since 5.0, the method is unused
        Returns whether this instance supports getting data members through a call to nextDataMember().
        Since:
        4.2
        See Also:
        nextDataMember()