public class WeightedRandomLoadBalancer extends WeightedLoadBalancer
log
shutdown, 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, setRuntimeRatios
process
addProcessor, doShutdown, doStop, getId, getProcessors, hasNext, next, process, removeProcessor, setId
doResume, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public WeightedRandomLoadBalancer(List<Integer> distributionRatioList)
protected Processor chooseProcessor(List<Processor> processors, Exchange exchange)
chooseProcessor
in class QueueLoadBalancer
public int selectProcessIndex()
Apache Camel