org.apache.camel.processor.loadbalancer
Class RandomLoadBalancer

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.processor.loadbalancer.LoadBalancerSupport
          extended by org.apache.camel.processor.loadbalancer.QueueLoadBalancer
              extended by org.apache.camel.processor.loadbalancer.RandomLoadBalancer
All Implemented Interfaces:
AsyncProcessor, Navigate<Processor>, Processor, LoadBalancer, Service, ShutdownableService

public class RandomLoadBalancer
extends QueueLoadBalancer

Implements the random load balancing policy

Version:
$Revision: 13716 $

Field Summary
 
Fields inherited from class org.apache.camel.processor.loadbalancer.LoadBalancerSupport
log
 
Constructor Summary
RandomLoadBalancer()
           
 
Method Summary
protected  Processor chooseProcessor(List<Processor> processors, Exchange exchange)
           
 String toString()
           
 
Methods inherited from class org.apache.camel.processor.loadbalancer.QueueLoadBalancer
process, process
 
Methods inherited from class org.apache.camel.processor.loadbalancer.LoadBalancerSupport
addProcessor, doStart, doStop, getProcessors, hasNext, next, removeProcessor
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
addChildService, doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, start, stop, suspend
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RandomLoadBalancer

public RandomLoadBalancer()
Method Detail

chooseProcessor

protected Processor chooseProcessor(List<Processor> processors,
                                    Exchange exchange)
Specified by:
chooseProcessor in class QueueLoadBalancer

toString

public String toString()
Overrides:
toString in class Object


Apache CAMEL