org.jboss.soa.esb.listeners.ha
Interface LoadBalancePolicy
- All Known Implementing Classes:
- AbstractLoadBalancePolicy, FirstAvailable, RandomRobin, RoundRobin
public interface LoadBalancePolicy
Base interface for load-balancing policies. It is possible to implement many
different load-balancing policies by implementing this simple interface and
using it in the different service clusters.
Code based on jbossas ha framework.
- Author:
- Kurt Stam.
Method Summary |
EPR |
chooseEPR(ServiceClusterInfo serviceCluster)
Called when the ServiceInvoker wishes to know on which node the next invocation must
be performed. |
chooseEPR
EPR chooseEPR(ServiceClusterInfo serviceCluster)
- Called when the ServiceInvoker wishes to know on which node the next invocation must
be performed.
- Parameters:
serviceCluster
- A list of potential eprs
- Returns:
- The selected epr for the next invocation