org.jboss.jms.client.plugin
Class RandomLoadBalancingPolicy

java.lang.Object
  extended byorg.jboss.jms.client.plugin.RandomLoadBalancingPolicy
All Implemented Interfaces:
LoadBalancingPolicy, java.io.Serializable

public class RandomLoadBalancingPolicy
extends java.lang.Object
implements LoadBalancingPolicy

Version:
$Revision: 2681 $ $Id: RandomLoadBalancingPolicy.java 2681 2007-05-15 00:09:10Z timfox $
Author:
Clebert Suconic
See Also:
Serialized Form

Constructor Summary
RandomLoadBalancingPolicy(ConnectionFactoryDelegate[] delegates)
           
 
Method Summary
 ConnectionFactoryDelegate getNext()
           
protected  int randomSelect()
           
 void updateView(ConnectionFactoryDelegate[] 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

RandomLoadBalancingPolicy

public RandomLoadBalancingPolicy(ConnectionFactoryDelegate[] delegates)
Method Detail

getNext

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

updateView

public void updateView(ConnectionFactoryDelegate[] 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

randomSelect

protected int randomSelect()


Copyright © 2006 JBoss Inc. All Rights Reserved.