public final class RoundRobinConnectionLoadBalancingPolicy extends Object implements ConnectionLoadBalancingPolicy, Serializable
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.| Constructor and Description |
|---|
RoundRobinConnectionLoadBalancingPolicy() |
public RoundRobinConnectionLoadBalancingPolicy()
public int select(int max)
ConnectionLoadBalancingPolicyselect in interface ConnectionLoadBalancingPolicymax - maximum position index that can be selectedCopyright © 2013 JBoss, a division of Red Hat. All rights reserved.