Home » synapse-1.2-src » org.apache.synapse.endpoints.algorithms » [javadoc | source]
org.apache.synapse.endpoints.algorithms
public interface: LoadbalanceAlgorithm [javadoc | source]

All Known Implementing Classes:
    RoundRobin

All load balance algorithms must implement this interface. Implementations of this interface can be registered in LoadbalanceManagers.
Method from org.apache.synapse.endpoints.algorithms.LoadbalanceAlgorithm Summary:
getNextEndpoint,   reset
Method from org.apache.synapse.endpoints.algorithms.LoadbalanceAlgorithm Detail:
 public Endpoint getNextEndpoint(MessageContext synapseMessageContext,
    AlgorithmContext algorithmContext)
    This method returns the next node according to the algorithm implementation.
 public  void reset(AlgorithmContext algorithmContext)
    Resets the algorithm to its initial position. Initial position depends on the implementation.