public class RandomStickyConnectionLoadBalancingPolicy extends java.lang.Object implements ConnectionLoadBalancingPolicy
RandomConnectionLoadBalancingPolicy.select(int)
chooses a the initial node randomly then subsequent requests return the same nodeConstructor 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)
ConnectionLoadBalancingPolicy
select
in interface ConnectionLoadBalancingPolicy
max
- maximum position index that can be selectedCopyright © 2009 Red Hat Inc. All Rights Reserved.