org.hornetq.api.core.client.loadbalance
Class FirstElementConnectionLoadBalancingPolicy

java.lang.Object
  extended by org.hornetq.api.core.client.loadbalance.FirstElementConnectionLoadBalancingPolicy
All Implemented Interfaces:
ConnectionLoadBalancingPolicy

public final class FirstElementConnectionLoadBalancingPolicy
extends Object
implements ConnectionLoadBalancingPolicy

A select(int) always returns 0.

Author:
Tim Fox Created 28 Nov 2008 10:56:59

Constructor Summary
FirstElementConnectionLoadBalancingPolicy()
           
 
Method Summary
 int select(int max)
          Returns the selected index according to the policy implementation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FirstElementConnectionLoadBalancingPolicy

public FirstElementConnectionLoadBalancingPolicy()
Method Detail

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 © 2012 JBoss, a division of Red Hat. All Rights Reserved.