@Metadata(label="eip,routing") public class SortDefinition<T> extends NoOutputExpressionNode
inheritErrorHandler, log| Constructor and Description |
|---|
SortDefinition() |
SortDefinition(Expression expression) |
SortDefinition(Expression expression,
Comparator<? super T> comparator) |
| Modifier and Type | Method and Description |
|---|---|
SortDefinition<T> |
comparator(Comparator<T> comparator)
Sets the comparator to use for sorting
|
SortDefinition<T> |
comparatorRef(String ref)
Sets a reference to lookup for the comparator to use for sorting
|
Processor |
createProcessor(RouteContext routeContext)
Override this in definition class and implement logic to create the processor
based on the definition model.
|
Comparator<? super T> |
getComparator() |
String |
getComparatorRef() |
String |
getLabel()
Returns a label to describe this node such as the expression if some kind of expression node
|
void |
setComparator(Comparator<T> comparator) |
void |
setComparatorRef(String comparatorRef) |
void |
setExpression(ExpressionDefinition expression)
Optional expression to sort by something else than the message body
|
String |
toString() |
addOutput, getOutputs, id, isOutputSupportedconfigureChild, createFilterProcessor, createPredicate, getExpression, preCreateProcessor, setOutputsaddInterceptStrategies, addInterceptStrategy, addRoutes, aggregate, aggregate, aggregate, aggregate, aop, attribute, bean, bean, bean, bean, bean, bean, bean, bean, beanRef, beanRef, beanRef, beanRef, beanRef, choice, claimCheck, claimCheck, claimCheck, claimCheck, clearOutput, convertBodyTo, convertBodyTo, createChannel, createChildProcessor, createCompositeProcessor, createOutputsProcessor, createOutputsProcessor, createOutputsProcessorImpl, createProcessor, delay, delay, delay, doTry, dynamicRouter, dynamicRouter, end, endChoice, endDoTry, endHystrix, endParent, endRest, enrich, enrich, enrich, enrich, enrich, enrichRef, enrichRef, enrichRef, enrichWith, enrichWith, enrichWith, filter, filter, filter, filter, getIndex, getInterceptStrategies, getOtherAttributes, getParent, hystrix, idempotentConsumer, idempotentConsumer, idempotentConsumer, idempotentConsumer, inheritErrorHandler, inOnly, inOnly, inOnly, inOnly, inOnly, inOnly, inOut, inOut, inOut, inOut, inOut, inOut, isAbstract, isInheritErrorHandler, isTopLevelOnly, isWrappingEntireOutput, loadBalance, loadBalance, log, log, log, log, log, log, loop, loop, loop, loopDoWhile, loopDoWhile, makeProcessor, markRollbackOnly, markRollbackOnlyLast, marshal, marshal, marshal, marshal, multicast, multicast, multicast, onCompletion, onException, onException, pipeline, pipeline, pipeline, pipeline, placeholder, policy, policy, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrichRef, pollEnrichRef, pollEnrichWith, pollEnrichWith, pollEnrichWith, process, process, process, processRef, recipientList, recipientList, recipientList, recipientList, removeFaultHeader, removeHeader, removeHeaders, removeHeaders, removeProperties, removeProperties, removeProperty, resequence, resequence, rollback, rollback, routeDescription, routeId, routingSlip, routingSlip, routingSlip, routingSlip, routingSlip, routingSlip, routingSlip, saga, sample, sample, sample, script, script, serviceCall, serviceCall, serviceCall, setBody, setBody, setBody, setBody, setExchangePattern, setFaultBody, setFaultHeader, setHeader, setHeader, setHeader, setInheritErrorHandler, setOtherAttributes, setOutHeader, setOutHeader, setParent, setProperty, setProperty, sort, sort, sort, split, split, split, startupOrder, stop, threads, threads, threads, threads, throttle, throttle, throttle, throwException, throwException, to, to, to, to, to, to, to, to, to, to, toD, toD, toF, transacted, transacted, transform, transform, unmarshal, unmarshal, unmarshal, unmarshal, validate, validate, validate, wireTap, wireTap, wireTap, wireTap, wireTap, wireTap, wireTap, wireTap, wireTap, wrapChannel, wrapChannel, wrapInErrorHandler, wrapProcessordescription, description, getCustomId, getDescription, getDescriptionText, getId, getShortName, hasCustomIdAssigned, idOrCreate, setCustomId, setDescription, setIdpublic SortDefinition()
public SortDefinition(Expression expression)
public SortDefinition(Expression expression, Comparator<? super T> comparator)
public String getLabel()
ProcessorDefinitiongetLabel in interface NamedNodegetLabel in class ExpressionNodepublic Processor createProcessor(RouteContext routeContext) throws Exception
ProcessorDefinitioncreateProcessor in class ProcessorDefinition<ExpressionNode>Exceptionpublic void setExpression(ExpressionDefinition expression)
setExpression in class ExpressionNodepublic Comparator<? super T> getComparator()
public void setComparator(Comparator<T> comparator)
public String getComparatorRef()
public void setComparatorRef(String comparatorRef)
public SortDefinition<T> comparator(Comparator<T> comparator)
comparator - the comparator to use for sortingpublic SortDefinition<T> comparatorRef(String ref)
ref - reference for the comparatorApache Camel