Class RoundRobinConnectionLoadBalancingPolicy

  • All Implemented Interfaces:
    java.io.Serializable, ConnectionLoadBalancingPolicy

    public final class RoundRobinConnectionLoadBalancingPolicy
    extends java.lang.Object
    implements ConnectionLoadBalancingPolicy, java.io.Serializable
    RoundRobinConnectionLoadBalancingPolicy corresponds to a round-robin load-balancing policy.
    The first call to select(int) will return a random integer between 0 (inclusive) and max (exclusive). Subsequent calls will then return an integer in a round-robin fashion.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int select​(int max)
      Returns the selected index according to the policy implementation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RoundRobinConnectionLoadBalancingPolicy

        public RoundRobinConnectionLoadBalancingPolicy()