org.hornetq.api.core.client.loadbalance
Class RandomConnectionLoadBalancingPolicy
java.lang.Object
org.hornetq.api.core.client.loadbalance.RandomConnectionLoadBalancingPolicy
- All Implemented Interfaces:
- ConnectionLoadBalancingPolicy
public class RandomConnectionLoadBalancingPolicy
- extends Object
- implements ConnectionLoadBalancingPolicy
select(int) returns a random integer between 0 (inclusive) and max (exclusive)
- Author:
- Tim Fox
Created 28 Nov 2008 10:24:11
|
Method Summary |
int |
select(int max)
Returns the selected index according to the policy implementation. |
RandomConnectionLoadBalancingPolicy
public RandomConnectionLoadBalancingPolicy()
select
public int select(int max)
- Description copied from interface:
ConnectionLoadBalancingPolicy
- Returns the selected index according to the policy implementation.
- Specified by:
select in interface ConnectionLoadBalancingPolicy
- Parameters:
max - maximum position index that can be selected
Copyright © 2009 Red Hat Inc. All Rights Reserved.