org.apache.camel.processor
Class Splitter
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.processor.MulticastProcessor
org.apache.camel.processor.Splitter
- All Implemented Interfaces:
- Navigate, Processor, Traceable, Service
public class Splitter
- extends MulticastProcessor
- implements Processor, Traceable
Implements a dynamic Splitter pattern
where an expression is evaluated to iterate through each of the parts of a
message and then each part is then send to some endpoint.
- Version:
- $Revision: 788621 $
Methods inherited from class org.apache.camel.processor.MulticastProcessor |
doAggregate, doProcessParallel, doProcessSequntiel, doStart, doStop, getAggregationStrategy, getExecutorService, getProcessors, hasNext, isParallelProcessing, isStreaming, next, process, setExecutorService |
Methods inherited from class org.apache.camel.impl.ServiceSupport |
addChildService, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, removeChildService, start, stop |
Splitter
public Splitter(Expression expression,
Processor destination,
AggregationStrategy aggregationStrategy)
Splitter
public Splitter(Expression expression,
Processor destination,
AggregationStrategy aggregationStrategy,
boolean parallelProcessing,
ExecutorService executorService,
boolean streaming)
toString
public String toString()
- Overrides:
toString
in class MulticastProcessor
getTraceLabel
public String getTraceLabel()
- Description copied from interface:
Traceable
- Gets the trace label used for logging when tracing is enabled.
The lable should be short and precise.
- Specified by:
getTraceLabel
in interface Traceable
- Overrides:
getTraceLabel
in class MulticastProcessor
- Returns:
- the label
createProcessorExchangePairs
protected Iterable<org.apache.camel.processor.MulticastProcessor.ProcessorExchangePair> createProcessorExchangePairs(Exchange exchange)
- Overrides:
createProcessorExchangePairs
in class MulticastProcessor
updateNewExchange
protected void updateNewExchange(Exchange exchange,
int index,
Iterable<org.apache.camel.processor.MulticastProcessor.ProcessorExchangePair> allPairs)
- Overrides:
updateNewExchange
in class MulticastProcessor
getExpression
public Expression getExpression()
Apache CAMEL