public final class RandomConnectionLoadBalancingPolicy extends Object implements ConnectionLoadBalancingPolicy
Constructor and Description |
---|
RandomConnectionLoadBalancingPolicy() |
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 © 2018 JBoss by Red Hat. All rights reserved.