org.apache.camel.processor
Class Splitter

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.processor.MulticastProcessor
          extended by org.apache.camel.processor.Splitter
All Implemented Interfaces:
Processor, Service

public class Splitter
extends MulticastProcessor
implements Processor

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: 51508 $

Field Summary
static String SPLIT_COUNTER
           
static String SPLIT_SIZE
           
 
Constructor Summary
Splitter(Expression expression, Processor destination, AggregationStrategy aggregationStrategy)
           
Splitter(Expression expression, Processor destination, AggregationStrategy aggregationStrategy, boolean parallelProcessing, ThreadPoolExecutor threadPoolExecutor, boolean streaming)
           
 
Method Summary
protected  Iterable<org.apache.camel.processor.MulticastProcessor.ProcessorExchangePair> createProcessorExchangePairs(Exchange exchange)
           
 String toString()
           
protected  void updateNewExchange(Exchange exchange, int i, Iterable<org.apache.camel.processor.MulticastProcessor.ProcessorExchangePair> allPairs)
           
 
Methods inherited from class org.apache.camel.processor.MulticastProcessor
doAggregate, doStart, doStop, getAggregationStrategy, getProcessors, isStreaming, process, toProducers
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
addChildService, getThreadName, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, nextThreadCounter, removeChildService, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.camel.Processor
process
 

Field Detail

SPLIT_SIZE

public static final String SPLIT_SIZE
See Also:
Constant Field Values

SPLIT_COUNTER

public static final String SPLIT_COUNTER
See Also:
Constant Field Values
Constructor Detail

Splitter

public Splitter(Expression expression,
                Processor destination,
                AggregationStrategy aggregationStrategy)

Splitter

public Splitter(Expression expression,
                Processor destination,
                AggregationStrategy aggregationStrategy,
                boolean parallelProcessing,
                ThreadPoolExecutor threadPoolExecutor,
                boolean streaming)
Method Detail

toString

public String toString()
Overrides:
toString in class MulticastProcessor

createProcessorExchangePairs

protected Iterable<org.apache.camel.processor.MulticastProcessor.ProcessorExchangePair> createProcessorExchangePairs(Exchange exchange)
Overrides:
createProcessorExchangePairs in class MulticastProcessor

updateNewExchange

protected void updateNewExchange(Exchange exchange,
                                 int i,
                                 Iterable<org.apache.camel.processor.MulticastProcessor.ProcessorExchangePair> allPairs)
Overrides:
updateNewExchange in class MulticastProcessor


Copyright © 2009 IONA Open Source Community. All Rights Reserved.