org.apache.camel.processor.loadbalancer
Class QueueLoadBalancer
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.processor.loadbalancer.LoadBalancerSupport
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 $
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 |
QueueLoadBalancer
public QueueLoadBalancer()
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