org.jboss.messaging.jms.client.plugin
Class RoundRobinLoadBalancingPolicy

java.lang.Object
  extended by org.jboss.messaging.jms.client.plugin.RoundRobinLoadBalancingPolicy
All Implemented Interfaces:
java.io.Serializable, LoadBalancingPolicy

public class RoundRobinLoadBalancingPolicy
extends java.lang.Object
implements LoadBalancingPolicy

Version:
$Revision: 3794 $ $Id: RoundRobinLoadBalancingPolicy.java 3794 2008-02-25 19:31:23Z timfox $
Author:
Ovidiu Feodorov
See Also:
Serialized Form

Constructor Summary
RoundRobinLoadBalancingPolicy(ClientConnectionFactoryImpl[] delegates)
           
 
Method Summary
 ClientConnectionFactoryImpl getNext()
           
 void updateView(ClientConnectionFactoryImpl[] delegates)
          This method should be called when updating the LoadBalancingFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoundRobinLoadBalancingPolicy

public RoundRobinLoadBalancingPolicy(ClientConnectionFactoryImpl[] delegates)
Method Detail

getNext

public ClientConnectionFactoryImpl getNext()
Specified by:
getNext in interface LoadBalancingPolicy

updateView

public void updateView(ClientConnectionFactoryImpl[] delegates)
Description copied from interface: LoadBalancingPolicy
This method should be called when updating the LoadBalancingFactory

Specified by:
updateView in interface LoadBalancingPolicy
Parameters:
delegates - - a List representing the lastest cluster view to chose delegates from


Copyright © 2006 JBoss Inc. All Rights Reserved.