org.hornetq.api.core.client.loadbalance
Class FirstElementConnectionLoadBalancingPolicy
java.lang.Object
org.hornetq.api.core.client.loadbalance.FirstElementConnectionLoadBalancingPolicy
- All Implemented Interfaces:
- ConnectionLoadBalancingPolicy
public class FirstElementConnectionLoadBalancingPolicy
- extends Object
- implements ConnectionLoadBalancingPolicy
A select(int)
always returns 0.
- Author:
- Tim Fox
Created 28 Nov 2008 10:56:59
Method Summary |
int |
select(int max)
Returns the selected index according to the policy implementation. |
FirstElementConnectionLoadBalancingPolicy
public FirstElementConnectionLoadBalancingPolicy()
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.