org.apache.camel.processor
Class Resequencer
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.processor.BatchProcessor
org.apache.camel.processor.Resequencer
- All Implemented Interfaces:
- Navigate<Processor>, Processor, Traceable, Service, ShutdownableService
public class Resequencer
- extends BatchProcessor
- implements Traceable
An implementation of the Resequencer
which can reorder messages within a batch.
- Version:
| Methods inherited from class org.apache.camel.processor.BatchProcessor |
doStart, doStop, getBatchSize, getBatchTimeout, getCompletionPredicate, getExceptionHandler, getOutBatchSize, getProcessor, hasNext, isBatchConsumer, isGroupExchanges, next, process, processExchange, setBatchConsumer, setBatchSize, setBatchTimeout, setCompletionPredicate, setExceptionHandler, setGroupExchanges, setOutBatchSize |
| Methods inherited from class org.apache.camel.impl.ServiceSupport |
addChildService, doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, start, stop, suspend |
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)
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(List<Expression> expressions,
boolean allowDuplicates,
boolean reverse)
createSet
protected static Set<Exchange> createSet(Comparator<? super Exchange> comparator,
boolean allowDuplicates,
boolean reverse)
Apache CAMEL