public abstract class WeightedLoadBalancer extends QueueLoadBalancer
logshutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending| Constructor and Description |
|---|
WeightedLoadBalancer(List<Integer> distributionRatios) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
deepCloneDistributionRatios(List<Integer> distributionRatios) |
protected void |
doStart()
Implementations override this method to support customized start/stop.
|
List<Integer> |
getDistributionRatioList() |
int |
getLastChosenProcessorIndex() |
List<DistributionRatio> |
getRuntimeRatios() |
protected boolean |
isRuntimeRatiosZeroed() |
protected void |
loadRuntimeRatios(List<Integer> distributionRatios) |
protected void |
resetRuntimeRatios() |
void |
setDistributionRatioList(List<Integer> distributionRatioList) |
void |
setRuntimeRatios(ArrayList<DistributionRatio> runtimeRatios) |
chooseProcessor, processaddProcessor, doShutdown, doStop, getId, getProcessors, hasNext, next, process, removeProcessor, setIddoResume, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic WeightedLoadBalancer(List<Integer> distributionRatios)
protected void deepCloneDistributionRatios(List<Integer> distributionRatios)
public int getLastChosenProcessorIndex()
protected void doStart() throws Exception
ServiceSupportServiceSupport.doStop() for more details.doStart in class LoadBalancerSupportExceptionServiceSupport.doStop()protected void loadRuntimeRatios(List<Integer> distributionRatios)
protected boolean isRuntimeRatiosZeroed()
protected void resetRuntimeRatios()
public List<Integer> getDistributionRatioList()
public void setDistributionRatioList(List<Integer> distributionRatioList)
public List<DistributionRatio> getRuntimeRatios()
public void setRuntimeRatios(ArrayList<DistributionRatio> runtimeRatios)
Apache Camel