public final class RandomConnectionLoadBalancingPolicy extends Object implements ConnectionLoadBalancingPolicy
| Constructor and Description |
|---|
RandomConnectionLoadBalancingPolicy() |
| Modifier and Type | Method and Description |
|---|---|
int |
select(int max)
Returns a pseudo random number between
0 (inclusive) and max exclusive. |
public int select(int max)
0 (inclusive) and max exclusive.select in interface ConnectionLoadBalancingPolicymax - the upper limit of the random number selectionRandom.nextInt(int)Copyright © 2018 The Apache Software Foundation. All rights reserved.