org.hornetq.api.core.client.loadbalance
public final class RoundRobinConnectionLoadBalancingPolicy extends Object implements ConnectionLoadBalancingPolicy, Serializable
select(int)
will return a random integer between 0
(inclusive) and max
(exclusive).
Subsequent calls will then return an integer in a round-robin fashion.Constructor and Description |
---|
RoundRobinConnectionLoadBalancingPolicy() |
public RoundRobinConnectionLoadBalancingPolicy()
public int select(int max)
ConnectionLoadBalancingPolicy
select
in interface ConnectionLoadBalancingPolicy
max
- maximum position index that can be selectedCopyright © 2016 JBoss, a division of Red Hat. All Rights Reserved.