org.hornetq.api.core.client.loadbalance
public final class RandomStickyConnectionLoadBalancingPolicy extends Object implements ConnectionLoadBalancingPolicy
RandomConnectionLoadBalancingPolicy.select(int)
chooses a the initial node randomly then subsequent requests return the same nodeConstructor and Description |
---|
RandomStickyConnectionLoadBalancingPolicy() |
public RandomStickyConnectionLoadBalancingPolicy()
public int select(int max)
ConnectionLoadBalancingPolicy
select
in interface ConnectionLoadBalancingPolicy
max
- maximum position index that can be selectedRandom.nextInt(int)
Copyright © 2016 JBoss, a division of Red Hat. All Rights Reserved.