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:
Navigate<Processor>, Processor, LoadBalancer, Service

public class RandomLoadBalancer
extends QueueLoadBalancer

Implements the random load balancing policy

Version:
$Revision: 13716 $

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
 
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, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, removeChildService, start, stop
 
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


Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.