@Metadata(label="eip,routing") public class ResequenceDefinition extends OutputDefinition<ResequenceDefinition> implements HasExpressionType
outputs
inheritErrorHandler, log
Constructor and Description |
---|
ResequenceDefinition() |
ResequenceDefinition(org.apache.camel.Expression expression) |
Modifier and Type | Method and Description |
---|---|
ResequenceDefinition |
allowDuplicates()
Enables duplicates for the batch resequencer mode
|
ResequenceDefinition |
batch()
Configures the batch-based resequencing algorithm using the default configuration.
|
ResequenceDefinition |
batch(BatchResequencerConfig config)
Configures the batch-based resequencing algorithm using the given
BatchResequencerConfig . |
ResequenceDefinition |
capacity(int capacity)
Sets the capacity for the stream resequencer
|
ResequenceDefinition |
comparator(org.apache.camel.processor.resequencer.ExpressionResultComparator comparator)
Sets the comparator to use for stream resequencer
|
ResequenceDefinition |
deliveryAttemptInterval(long deliveryAttemptInterval)
Sets the interval in milli seconds the stream resequencer will at most wait while waiting for condition of being
able to deliver.
|
BatchResequencerConfig |
getBatchConfig() |
ExpressionDefinition |
getExpression() |
ExpressionDefinition |
getExpressionType() |
String |
getLabel()
Returns a label to describe this node such as the expression if some kind of expression node
|
List<ProcessorDefinition<?>> |
getOutputs() |
ResequencerConfig |
getResequencerConfig() |
String |
getShortName() |
StreamResequencerConfig |
getStreamConfig() |
ResequenceDefinition |
ignoreInvalidExchanges()
If an incoming
Exchange is invalid, then it will be ignored. |
ResequenceDefinition |
rejectOld()
Sets the rejectOld flag to throw an error when a message older than the last delivered message is processed
|
ResequenceDefinition |
reverse()
Enables reverse mode for the batch resequencer mode.
|
void |
setBatchConfig(BatchResequencerConfig batchConfig) |
void |
setExpression(org.apache.camel.Expression expression)
Expression to use for re-ordering the messages, such as a header with a sequence number
|
void |
setExpression(ExpressionDefinition expression)
Expression to use for re-ordering the messages, such as a header with a sequence number
|
void |
setExpressionType(ExpressionDefinition expressionType)
Expression to use for re-ordering the messages, such as a header with a sequence number
|
void |
setOutputs(List<ProcessorDefinition<?>> outputs) |
void |
setResequencerConfig(ResequencerConfig resequencerConfig)
To configure the resequencer in using either batch or stream configuration.
|
void |
setStreamConfig(StreamResequencerConfig streamConfig) |
ResequenceDefinition |
size(int batchSize)
Sets the in batch size for number of exchanges received
|
ResequenceDefinition |
stream()
Configures the stream-based resequencing algorithm using the default configuration.
|
ResequenceDefinition |
stream(StreamResequencerConfig config)
Configures the stream-based resequencing algorithm using the given
StreamResequencerConfig . |
ResequenceDefinition |
timeout(Duration timeout)
Sets the timeout
|
ResequenceDefinition |
timeout(long timeout)
Sets the timeout
|
ResequenceDefinition |
timeout(String timeout)
Sets the timeout
|
String |
toString() |
addInterceptStrategy, addOutput, aggregate, aggregate, aggregate, aggregate, bean, bean, bean, bean, bean, bean, bean, bean, bean, bean, bean, choice, circuitBreaker, claimCheck, claimCheck, claimCheck, claimCheck, clearOutput, configureChild, convertBodyTo, convertBodyTo, convertBodyTo, delay, delay, delay, doTry, dynamicRouter, dynamicRouter, end, endChoice, endCircuitBreaker, endDoTry, endParent, endRest, enrich, enrich, enrich, enrich, enrich, enrich, enrich, enrich, enrich, enrichWith, enrichWith, enrichWith, enrichWith, enrichWith, enrichWith, filter, filter, filter, filter, getIndex, getInterceptStrategies, getParent, id, idempotentConsumer, idempotentConsumer, idempotentConsumer, inheritErrorHandler, inOnly, inOnly, inOnly, inOnly, inOnly, inOut, inOut, inOut, inOut, inOut, isAbstract, isInheritErrorHandler, isTopLevelOnly, isWrappingEntireOutput, kamelet, loadBalance, loadBalance, log, log, log, log, log, log, loop, loop, loop, loopDoWhile, loopDoWhile, markRollbackOnly, markRollbackOnlyLast, marshal, marshal, marshal, marshal, multicast, multicast, multicast, onCompletion, onException, onException, pipeline, pipeline, pipeline, pipeline, policy, policy, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrichWith, pollEnrichWith, pollEnrichWith, pollEnrichWith, pollEnrichWith, pollEnrichWith, preCreateProcessor, process, process, process, recipientList, recipientList, recipientList, recipientList, removeHeader, removeHeaders, removeHeaders, removeProperties, removeProperties, removeProperty, resequence, resequence, rollback, rollback, routeDescription, routeGroup, routeId, routingSlip, routingSlip, routingSlip, saga, sample, sample, sample, sample, script, script, serviceCall, serviceCall, serviceCall, setBody, setBody, setBody, setExchangePattern, setHeader, setHeader, setHeader, setInheritErrorHandler, setParent, setProperty, setProperty, setProperty, sort, sort, sort, split, split, split, split, startupOrder, step, step, stop, threads, threads, threads, threads, throttle, throttle, throttle, throttle, throttle, throwException, throwException, to, to, to, to, to, to, to, to, to, to, to, to, to, to, toD, toD, toD, toD, toD, toD, toD, toF, transacted, transacted, transform, transform, unmarshal, unmarshal, unmarshal, unmarshal, validate, validate, validate, wireTap, wireTap, wireTap
description, description, getCustomId, getDescription, getDescriptionText, getId, hasCustomIdAssigned, idOrCreate, setCustomId, setDescription, setGeneratedId, setId
public ResequenceDefinition()
public ResequenceDefinition(org.apache.camel.Expression expression)
public List<ProcessorDefinition<?>> getOutputs()
getOutputs
in class OutputDefinition<ResequenceDefinition>
public void setOutputs(List<ProcessorDefinition<?>> outputs)
setOutputs
in class OutputDefinition<ResequenceDefinition>
public ResequenceDefinition stream()
public ResequenceDefinition batch()
public ResequenceDefinition stream(StreamResequencerConfig config)
StreamResequencerConfig
.config
- the configpublic ResequenceDefinition batch(BatchResequencerConfig config)
BatchResequencerConfig
.config
- the configpublic ResequenceDefinition timeout(long timeout)
timeout
- timeout in millispublic ResequenceDefinition timeout(Duration timeout)
timeout
- timeoutpublic ResequenceDefinition timeout(String timeout)
timeout
- timeoutpublic ResequenceDefinition deliveryAttemptInterval(long deliveryAttemptInterval)
deliveryAttemptInterval
- interval in millispublic ResequenceDefinition rejectOld()
public ResequenceDefinition size(int batchSize)
batchSize
- the batch sizepublic ResequenceDefinition capacity(int capacity)
capacity
- the capacitypublic ResequenceDefinition allowDuplicates()
public ResequenceDefinition reverse()
public ResequenceDefinition ignoreInvalidExchanges()
Exchange
is invalid, then it will be ignored.public ResequenceDefinition comparator(org.apache.camel.processor.resequencer.ExpressionResultComparator comparator)
comparator
- the comparatorpublic String toString()
toString
in class OutputDefinition<ResequenceDefinition>
public String getShortName()
getShortName
in interface org.apache.camel.NamedNode
getShortName
in class OutputDefinition<ResequenceDefinition>
public String getLabel()
ProcessorDefinition
getLabel
in interface org.apache.camel.NamedNode
getLabel
in class ProcessorDefinition<ResequenceDefinition>
public ResequencerConfig getResequencerConfig()
public void setResequencerConfig(ResequencerConfig resequencerConfig)
public BatchResequencerConfig getBatchConfig()
public StreamResequencerConfig getStreamConfig()
public void setBatchConfig(BatchResequencerConfig batchConfig)
public void setStreamConfig(StreamResequencerConfig streamConfig)
public ExpressionDefinition getExpression()
public void setExpression(ExpressionDefinition expression)
public void setExpression(org.apache.camel.Expression expression)
public ExpressionDefinition getExpressionType()
getExpressionType
in interface HasExpressionType
public void setExpressionType(ExpressionDefinition expressionType)
setExpressionType
in interface HasExpressionType
Apache Camel