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() |
| Modifier and Type | Method and Description |
|---|---|
int |
select(int max)
Returns the selected index according to the policy implementation.
|
public RoundRobinConnectionLoadBalancingPolicy()
public int select(int max)
ConnectionLoadBalancingPolicyselect in interface ConnectionLoadBalancingPolicymax - maximum position index that can be selectedCopyright © 2018 The Apache Software Foundation. All rights reserved.