public class WeightedRandomLoadBalancer extends WeightedLoadBalancer
logshutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending| Constructor and Description |
|---|
WeightedRandomLoadBalancer(List<Integer> distributionRatioList) |
| Modifier and Type | Method and Description |
|---|---|
protected Processor |
chooseProcessor(List<Processor> processors,
Exchange exchange) |
int |
selectProcessIndex() |
deepCloneDistributionRatios, doStart, getDistributionRatioList, getLastChosenProcessorIndex, getRuntimeRatios, isRuntimeRatiosZeroed, loadRuntimeRatios, resetRuntimeRatios, setDistributionRatioList, setRuntimeRatiosprocessaddProcessor, 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 WeightedRandomLoadBalancer(List<Integer> distributionRatioList)
protected Processor chooseProcessor(List<Processor> processors, Exchange exchange)
chooseProcessor in class QueueLoadBalancerpublic int selectProcessIndex()
Apache Camel