org.apache.camel.processor.loadbalancer
Class QueueLoadBalancer

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
All Implemented Interfaces:
Navigate<Processor>, Processor, LoadBalancer, Service
Direct Known Subclasses:
RandomLoadBalancer, RoundRobinLoadBalancer, StickyLoadBalancer

public abstract class QueueLoadBalancer
extends LoadBalancerSupport

A base class for LoadBalancer implementations which choose a single destination for each exchange (rather like JMS Queues)

Version:
$Revision: 770599 $

Constructor Summary
QueueLoadBalancer()
           
 
Method Summary
protected abstract  Processor chooseProcessor(List<Processor> processors, Exchange exchange)
           
 void process(Exchange exchange)
          Processes the message exchange
 
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, toString, wait, wait, wait
 

Constructor Detail

QueueLoadBalancer

public QueueLoadBalancer()
Method Detail

process

public void process(Exchange exchange)
             throws Exception
Description copied from interface: Processor
Processes the message exchange

Parameters:
exchange - the message exchange
Throws:
Exception - if an internal processing error has occurred.

chooseProcessor

protected abstract Processor chooseProcessor(List<Processor> processors,
                                             Exchange exchange)


Apache CAMEL