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, getRuntimeRatios, isRuntimeRatiosZeroed, loadRuntimeRatios, resetRuntimeRatios, setDistributionRatioList, setRuntimeRatios
process
addProcessor, doShutdown, doStop, getProcessors, hasNext, next, process, removeProcessor
doResume, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, 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