@Metadata(label="eip,routing") public class ResequenceDefinition extends ProcessorDefinition<ResequenceDefinition>
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(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() |
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. |
boolean |
isOutputSupported() |
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(ExpressionDefinition expression)
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(long timeout)
Sets the timeout
|
String |
toString() |
addInterceptStrategy, addOutput, aggregate, aggregate, aggregate, aggregate, attribute, bean, bean, bean, bean, bean, bean, bean, choice, claimCheck, claimCheck, claimCheck, claimCheck, clearOutput, configureChild, convertBodyTo, convertBodyTo, delay, delay, delay, doTry, dynamicRouter, dynamicRouter, end, endChoice, endDoTry, endHystrix, endParent, endRest, enrich, enrich, enrich, enrich, enrich, enrichWith, enrichWith, enrichWith, filter, filter, filter, filter, getIndex, getInterceptStrategies, getOtherAttributes, getParent, hystrix, id, idempotentConsumer, idempotentConsumer, idempotentConsumer, inheritErrorHandler, inOnly, inOnly, inOnly, inOnly, inOnly, inOut, inOut, inOut, inOut, inOut, isAbstract, isInheritErrorHandler, isTopLevelOnly, isWrappingEntireOutput, 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, placeholder, policy, policy, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, 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, script, script, serviceCall, serviceCall, serviceCall, setBody, setBody, setBody, setBody, setExchangePattern, setFaultBody, setHeader, setHeader, setHeader, setInheritErrorHandler, setOtherAttributes, setParent, setProperty, setProperty, sort, sort, sort, 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, toD, toD, toD, toF, transacted, transacted, transform, transform, unmarshal, unmarshal, unmarshal, unmarshal, validate, validate, validate, wireTap, wireTap
description, description, getCustomId, getDescription, getDescriptionText, getId, hasCustomIdAssigned, idOrCreate, setCustomId, setDescription, setId
public ResequenceDefinition()
public ResequenceDefinition(org.apache.camel.Expression expression)
public List<ProcessorDefinition<?>> getOutputs()
getOutputs
in class ProcessorDefinition<ResequenceDefinition>
public void setOutputs(List<ProcessorDefinition<?>> outputs)
public boolean isOutputSupported()
isOutputSupported
in class ProcessorDefinition<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 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(ExpressionResultComparator comparator)
comparator
- the comparatorpublic String getShortName()
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)
Apache Camel