public class Splitter extends MulticastProcessor implements AsyncProcessor, Traceable
onPrepareshutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending| Constructor and Description |
|---|
Splitter(CamelContext camelContext,
Expression expression,
Processor destination,
AggregationStrategy aggregationStrategy) |
Splitter(CamelContext camelContext,
Expression expression,
Processor destination,
AggregationStrategy aggregationStrategy,
boolean parallelProcessing,
java.util.concurrent.ExecutorService executorService,
boolean shutdownExecutorService,
boolean streaming,
boolean stopOnException,
long timeout,
Processor onPrepare,
boolean useSubUnitOfWork) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Iterable<ProcessorExchangePair> |
createProcessorExchangePairs(Exchange exchange) |
protected java.lang.Integer |
getExchangeIndex(Exchange exchange) |
Expression |
getExpression() |
java.lang.String |
getTraceLabel()
Gets the trace label used for logging when tracing is enabled.
|
boolean |
process(Exchange exchange,
AsyncCallback callback)
Processes the message exchange.
|
java.lang.String |
toString() |
protected void |
updateNewExchange(Exchange exchange,
int index,
java.lang.Iterable<ProcessorExchangePair> allPairs,
java.util.Iterator<ProcessorExchangePair> it) |
createAggregateExecutorService, createErrorHandler, createProcessorExchangePair, createUnitOfWorkProcessor, doAggregate, doDone, doProcessParallel, doProcessSequential, doShutdown, doStart, doStop, getAggregationStrategy, getAggregationStrategy, getCamelContext, getProcessors, getTimeout, hasNext, isParallelProcessing, isShareUnitOfWork, isStopOnException, isStreaming, next, prepareSharedUnitOfWork, process, removeAggregationStrategyFromExchange, setAggregationStrategyOnExchange, setToEndpointdoResume, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspendpublic Splitter(CamelContext camelContext, Expression expression, Processor destination, AggregationStrategy aggregationStrategy)
public Splitter(CamelContext camelContext, Expression expression, Processor destination, AggregationStrategy aggregationStrategy, boolean parallelProcessing, java.util.concurrent.ExecutorService executorService, boolean shutdownExecutorService, boolean streaming, boolean stopOnException, long timeout, Processor onPrepare, boolean useSubUnitOfWork)
public java.lang.String toString()
toString in class MulticastProcessorpublic java.lang.String getTraceLabel()
TraceablegetTraceLabel in interface TraceablegetTraceLabel in class MulticastProcessorpublic boolean process(Exchange exchange, AsyncCallback callback)
AsyncProcessorProcessor.process(org.apache.camel.Exchange), but the caller supports having the exchange asynchronously processed.
If there was a failure processing then the caused Exception would be set on the Exchange.process in interface AsyncProcessorprocess in class MulticastProcessorexchange - the message exchangecallback - the AsyncCallback will be invoked when the processing of the exchange is completed.
If the exchange is completed synchronously, then the callback is also invoked synchronously.
The callback should therefore be careful of starting recursive loop.protected java.lang.Iterable<ProcessorExchangePair> createProcessorExchangePairs(Exchange exchange) throws java.lang.Exception
createProcessorExchangePairs in class MulticastProcessorjava.lang.Exceptionprotected void updateNewExchange(Exchange exchange, int index, java.lang.Iterable<ProcessorExchangePair> allPairs, java.util.Iterator<ProcessorExchangePair> it)
updateNewExchange in class MulticastProcessorprotected java.lang.Integer getExchangeIndex(Exchange exchange)
getExchangeIndex in class MulticastProcessorpublic Expression getExpression()
Copyright © 2007-2014 Red Hat, Inc.. All Rights Reserved.