org.apache.camel.processor
Class Resequencer

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.processor.BatchProcessor
          extended by org.apache.camel.processor.Resequencer
All Implemented Interfaces:
Navigate<Processor>, Processor, Traceable, Service

public class Resequencer
extends BatchProcessor
implements Traceable

An implementation of the Resequencer which can reorder messages within a batch.

Version:
$Revision: 788621 $

Field Summary
 
Fields inherited from class org.apache.camel.processor.BatchProcessor
DEFAULT_BATCH_SIZE, DEFAULT_BATCH_TIMEOUT
 
Constructor Summary
Resequencer(Processor processor, Expression expression)
           
Resequencer(Processor processor, List<Expression> expressions)
           
Resequencer(Processor processor, Set<Exchange> collection)
           
 
Method Summary
protected static Set<Exchange> createSet(Comparator<? super Exchange> comparator)
           
protected static Set<Exchange> createSet(Expression expression)
           
protected static Set<Exchange> createSet(List<Expression> expressions)
           
 String getTraceLabel()
          Gets the trace label used for logging when tracing is enabled.
 String toString()
           
 
Methods inherited from class org.apache.camel.processor.BatchProcessor
doStart, doStop, getBatchSize, getBatchTimeout, getExceptionHandler, getOutBatchSize, getProcessor, hasNext, isBatchConsumer, isGroupExchanges, next, process, processExchange, setBatchConsumer, setBatchSize, setBatchTimeout, setExceptionHandler, setGroupExchanges, setOutBatchSize
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
addChildService, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, removeChildService, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Resequencer

public Resequencer(Processor processor,
                   Expression expression)

Resequencer

public Resequencer(Processor processor,
                   List<Expression> expressions)

Resequencer

public Resequencer(Processor processor,
                   Set<Exchange> collection)
Method Detail

toString

public String toString()
Overrides:
toString in class BatchProcessor

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
Returns:
the label

createSet

protected static Set<Exchange> createSet(Expression expression)

createSet

protected static Set<Exchange> createSet(List<Expression> expressions)

createSet

protected static Set<Exchange> createSet(Comparator<? super Exchange> comparator)


Apache CAMEL