public abstract class WeightedLoadBalancer extends QueueLoadBalancer
| Modifier and Type | Field and Description |
|---|---|
protected int |
distributionRatioSum |
protected List<DistributionRatio> |
ratios |
protected int |
runtimeRatioSum |
| Constructor and Description |
|---|
WeightedLoadBalancer(List<Integer> distributionRatios) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
decrementSum() |
protected void |
doStart() |
int |
getLastChosenProcessorIndex() |
List<DistributionRatio> |
getRatios() |
protected void |
reset() |
chooseProcessor, processaddProcessor, doGetProcessors, doInit, doShutdown, doStop, getId, getProcessors, getRouteId, hasNext, next, removeProcessor, setId, setRouteId, toStringbuild, doBuild, doFail, doLifecycleChange, doResume, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitprotected final List<DistributionRatio> ratios
protected final int distributionRatioSum
protected int runtimeRatioSum
public int getLastChosenProcessorIndex()
protected void doStart()
throws Exception
doStart in class LoadBalancerSupportExceptionprotected void decrementSum()
protected void reset()
public List<DistributionRatio> getRatios()
Apache Camel