org.apache.camel.processor
Class Resequencer

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

public class Resequencer
extends BatchProcessor
implements Traceable

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

Version:

Field Summary
 
Fields inherited from class org.apache.camel.processor.BatchProcessor
DEFAULT_BATCH_SIZE, DEFAULT_BATCH_TIMEOUT
 
Fields inherited from class org.apache.camel.support.ServiceSupport
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
 
Constructor Summary
Resequencer(CamelContext camelContext, Processor processor, Expression expression)
           
Resequencer(CamelContext camelContext, Processor processor, Expression expression, boolean allowDuplicates, boolean reverse)
           
Resequencer(CamelContext camelContext, Processor processor, Set<Exchange> collection, Expression expression)
           
 
Method Summary
protected static Set<Exchange> createSet(Comparator<? super Exchange> comparator, boolean allowDuplicates, boolean reverse)
           
protected static Set<Exchange> createSet(Expression expression, boolean allowDuplicates, boolean reverse)
           
 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, getCompletionPredicate, getExceptionHandler, getOutBatchSize, getProcessor, hasNext, isBatchConsumer, isGroupExchanges, isIgnoreInvalidExchanges, next, process, processExchange, setBatchConsumer, setBatchSize, setBatchTimeout, setCompletionPredicate, setExceptionHandler, setGroupExchanges, setIgnoreInvalidExchanges, setOutBatchSize
 
Methods inherited from class org.apache.camel.support.ServiceSupport
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, resume, shutdown, start, stop, suspend
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Resequencer

public Resequencer(CamelContext camelContext,
                   Processor processor,
                   Expression expression)

Resequencer

public Resequencer(CamelContext camelContext,
                   Processor processor,
                   Expression expression,
                   boolean allowDuplicates,
                   boolean reverse)

Resequencer

public Resequencer(CamelContext camelContext,
                   Processor processor,
                   Set<Exchange> collection,
                   Expression expression)
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 label should be short and precise.

Specified by:
getTraceLabel in interface Traceable
Returns:
the label

createSet

protected static Set<Exchange> createSet(Expression expression,
                                         boolean allowDuplicates,
                                         boolean reverse)

createSet

protected static Set<Exchange> createSet(Comparator<? super Exchange> comparator,
                                         boolean allowDuplicates,
                                         boolean reverse)


Apache CAMEL