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,
ExecutorService executorService,
boolean shutdownExecutorService,
boolean streaming,
boolean stopOnException,
long timeout,
Processor onPrepare,
boolean useSubUnitOfWork)
Deprecated.
|
Splitter(CamelContext camelContext,
Expression expression,
Processor destination,
AggregationStrategy aggregationStrategy,
boolean parallelProcessing,
ExecutorService executorService,
boolean shutdownExecutorService,
boolean streaming,
boolean stopOnException,
long timeout,
Processor onPrepare,
boolean useSubUnitOfWork,
boolean parallelAggregate) |
| Modifier and Type | Method and Description |
|---|---|
protected Iterable<ProcessorExchangePair> |
createProcessorExchangePairs(Exchange exchange) |
protected Integer |
getExchangeIndex(Exchange exchange) |
Expression |
getExpression() |
String |
getTraceLabel()
Gets the trace label used for logging when tracing is enabled.
|
boolean |
process(Exchange exchange,
AsyncCallback callback)
Processes the message exchange.
|
String |
toString() |
protected void |
updateNewExchange(Exchange exchange,
int index,
Iterable<ProcessorExchangePair> allPairs,
Iterator<ProcessorExchangePair> it) |
createAggregateExecutorService, createErrorHandler, createProcessorExchangePair, createUnitOfWorkProcessor, doAggregate, doAggregateInternal, doDone, doProcessParallel, doProcessSequential, doShutdown, doStart, doStop, getAggregationStrategy, getAggregationStrategy, getCamelContext, getId, getProcessors, getTimeout, hasNext, isParallelProcessing, isShareUnitOfWork, isStopOnException, isStreaming, next, prepareSharedUnitOfWork, process, removeAggregationStrategyFromExchange, setAggregationStrategyOnExchange, setId, setToEndpointdoResume, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic Splitter(CamelContext camelContext, Expression expression, Processor destination, AggregationStrategy aggregationStrategy)
@Deprecated public Splitter(CamelContext camelContext, Expression expression, Processor destination, AggregationStrategy aggregationStrategy, boolean parallelProcessing, ExecutorService executorService, boolean shutdownExecutorService, boolean streaming, boolean stopOnException, long timeout, Processor onPrepare, boolean useSubUnitOfWork)
public Splitter(CamelContext camelContext, Expression expression, Processor destination, AggregationStrategy aggregationStrategy, boolean parallelProcessing, ExecutorService executorService, boolean shutdownExecutorService, boolean streaming, boolean stopOnException, long timeout, Processor onPrepare, boolean useSubUnitOfWork, boolean parallelAggregate)
public String toString()
toString in class MulticastProcessorpublic 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 Iterable<ProcessorExchangePair> createProcessorExchangePairs(Exchange exchange) throws Exception
createProcessorExchangePairs in class MulticastProcessorExceptionprotected void updateNewExchange(Exchange exchange, int index, Iterable<ProcessorExchangePair> allPairs, Iterator<ProcessorExchangePair> it)
updateNewExchange in class MulticastProcessorprotected Integer getExchangeIndex(Exchange exchange)
getExchangeIndex in class MulticastProcessorpublic Expression getExpression()
Apache Camel