org.jboss.soa.esb.listeners.ha
Class RoundRobin

java.lang.Object
  extended by org.jboss.soa.esb.listeners.ha.RoundRobin
All Implemented Interfaces:
LoadBalancePolicy

public class RoundRobin
extends java.lang.Object
implements LoadBalancePolicy

LoadBalancingPolicy implementation that always favors the next available epr load balancing always occurs. Code based on jbossas ha framework.

Author:
Kurt Stam.

Constructor Summary
RoundRobin()
           
 
Method Summary
 EPR chooseEPR(ServiceClusterInfo serviceCluster)
          Called when the ServiceInvoker wishes to know on which node the next invocation must be performed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoundRobin

public RoundRobin()
Method Detail

chooseEPR

public EPR chooseEPR(ServiceClusterInfo serviceCluster)
Description copied from interface: LoadBalancePolicy
Called when the ServiceInvoker wishes to know on which node the next invocation must be performed.

Specified by:
chooseEPR in interface LoadBalancePolicy
Parameters:
serviceCluster - A list of potential eprs
Returns:
The selected epr for the next invocation