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 ConnectionLoadBalancingPolicy
max
- the upper limit of the random number selectionRandom.nextInt(int)
Copyright © 2017 JBoss by Red Hat. All rights reserved.