public final class RandomStickyConnectionLoadBalancingPolicy extends Object implements ConnectionLoadBalancingPolicy
RandomConnectionLoadBalancingPolicy.select(int) chooses a the initial node randomly then subsequent requests return the same node| Constructor and Description |
|---|
RandomStickyConnectionLoadBalancingPolicy() |
| Modifier and Type | Method and Description |
|---|---|
int |
select(int max)
Returns the selected index according to the policy implementation.
|
public RandomStickyConnectionLoadBalancingPolicy()
public int select(int max)
ConnectionLoadBalancingPolicyselect in interface ConnectionLoadBalancingPolicymax - maximum position index that can be selectedRandom.nextInt(int)Copyright © 2018 The Apache Software Foundation. All rights reserved.