public class TopicLoadBalancer extends LoadBalancerSupport
LoadBalancer
implementations which sends to all destinations
(rather like JMS Topics).
The MulticastProcessor
is more powerful as it offers
option to run in parallel and decide whether or not to stop on failure etc.Modifier and Type | Class and Description |
---|---|
protected class |
TopicLoadBalancer.State |
Constructor and Description |
---|
TopicLoadBalancer() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.camel.Exchange |
copyExchangeStrategy(org.apache.camel.Processor processor,
org.apache.camel.Exchange exchange)
Strategy method to copy the exchange before sending to another endpoint.
|
boolean |
process(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback) |
addProcessor, doGetProcessors, doShutdown, doStart, doStop, getId, getProcessors, hasNext, next, removeProcessor, setId, toString
build, doBuild, doInit, doResume, doSuspend, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public boolean process(org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback)
protected org.apache.camel.Exchange copyExchangeStrategy(org.apache.camel.Processor processor, org.apache.camel.Exchange exchange)
Pipeline
will not clone the exchangeprocessor
- the processor that will send the exchangeexchange
- the exchangeApache Camel