Class RandomConnectionLoadBalancingPolicy

    • Constructor Detail

      • RandomConnectionLoadBalancingPolicy

        public RandomConnectionLoadBalancingPolicy()
    • Method Detail

      • select

        public int select​(int max)
        Returns a pseudo random number between 0 (inclusive) and max exclusive.
        Specified by:
        select in interface ConnectionLoadBalancingPolicy
        Parameters:
        max - the upper limit of the random number selection
        See Also:
        Random.nextInt(int)