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, doInit, doShutdown, doStart, doStop, getId, getProcessors, getRouteId, hasNext, next, removeProcessor, setId, setRouteId, toString
build, doBuild, doFail, doLifecycleChange, doResume, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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