Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jboss.soa.esb.listeners.ha
Class AbstractLoadBalancePolicy

    java.lang.Object
      org.jboss.soa.esb.listeners.ha.AbstractLoadBalancePolicy

All Implemented Interfaces:
  LoadBalancePolicy

Direct Known Subclasses:
  FirstAvailable, RandomRobin, RoundRobin

    public abstract class AbstractLoadBalancePolicy

extends java.lang.Object
implements LoadBalancePolicy

Abstract `LoadBalancePolicy`.

Gives precedence to InVM EPRs, before selecting the EPR by policy.

Author:
  tom.fennelly@jboss.com

Constructor Summary
`AbstractLoadBalancePolicy()`

Method Summary
`EPR` | `chooseEPR(ServiceClusterInfo serviceCluster)` Called when the ServiceInvoker wishes to know on which node the next invocation must be performed.
`protected abstract EPR` | `chooseEPRByPolicy(ServiceClusterInfo serviceCluster)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### AbstractLoadBalancePolicy

    public AbstractLoadBalancePolicy()

Method Detail

### chooseEPR

    public final 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

### chooseEPRByPolicy

    protected abstract EPR chooseEPRByPolicy(ServiceClusterInfo serviceCluster)

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD