Home » synapse-1.2-src » org.apache.synapse.endpoints.algorithms » [javadoc | source]
org.apache.synapse.endpoints.algorithms
public class: RoundRobin [javadoc | source]
java.lang.Object
   org.apache.synapse.endpoints.algorithms.RoundRobin

All Implemented Interfaces:
    LoadbalanceAlgorithm

This is the implementation of the round robin load balancing algorithm. It simply iterates through the endpoint list one by one for until an active endpoint is found.
Constructor:
 public RoundRobin(ArrayList endpoints) 
Method from org.apache.synapse.endpoints.algorithms.RoundRobin Summary:
getNextEndpoint,   reset
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.synapse.endpoints.algorithms.RoundRobin Detail:
 public Endpoint getNextEndpoint(MessageContext synapseMessageContext,
    AlgorithmContext algorithmContext) 
    Choose an active endpoint using the round robin algorithm. If there are no active endpoints available, returns null.
 public  void reset(AlgorithmContext algorithmContext)