|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.model.OptionalIdentifiedDefinition org.apache.camel.model.ProcessorDefinition<ResequenceDefinition> org.apache.camel.model.ResequenceDefinition
public class ResequenceDefinition
Represents an XML <resequence/> element
Field Summary |
---|
Fields inherited from class org.apache.camel.model.ProcessorDefinition |
---|
inheritErrorHandler, log |
Constructor Summary | |
---|---|
ResequenceDefinition()
|
Method Summary | |
---|---|
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 |
protected Resequencer |
createBatchResequencer(RouteContext routeContext,
BatchResequencerConfig config)
Creates a batch Resequencer instance applying the given config . |
Processor |
createProcessor(RouteContext routeContext)
Override this in definition class and implement logic to create the processor based on the definition model. |
protected StreamResequencer |
createStreamResequencer(RouteContext routeContext,
StreamResequencerConfig config)
Creates a StreamResequencer instance applying the given config . |
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()
Returns a short name for this node which can be useful for ID generation or referring to related resources like images |
StreamResequencerConfig |
getStreamConfig()
|
ResequenceDefinition |
ignoreInvalidExchanges()
If an incoming Exchange is invalid, then it will be ignored. |
boolean |
isOutputSupported()
|
ResequenceDefinition |
reverse()
Enables reverse mode for the batch resequencer mode. |
void |
setBatchConfig(BatchResequencerConfig batchConfig)
|
void |
setExpression(ExpressionDefinition expression)
|
void |
setOutputs(List<ProcessorDefinition> outputs)
|
void |
setResequencerConfig(ResequencerConfig resequencerConfig)
|
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()
|
Methods inherited from class org.apache.camel.model.OptionalIdentifiedDefinition |
---|
description, getDescription, getDescriptionText, getId, hasCustomIdAssigned, idOrCreate, setDescription, setId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ResequenceDefinition()
Method Detail |
---|
public String getShortName()
OptionalIdentifiedDefinition
getShortName
in interface NamedNode
getShortName
in class OptionalIdentifiedDefinition
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 config
public ResequenceDefinition batch(BatchResequencerConfig config)
BatchResequencerConfig
.
config
- the config
public ResequenceDefinition timeout(long timeout)
timeout
- timeout in millis
public ResequenceDefinition size(int batchSize)
batchSize
- the batch size
public ResequenceDefinition capacity(int capacity)
capacity
- the capacity
public ResequenceDefinition allowDuplicates()
public ResequenceDefinition reverse()
public ResequenceDefinition ignoreInvalidExchanges()
Exchange
is invalid, then it will be ignored.
public ResequenceDefinition comparator(ExpressionResultComparator comparator)
comparator
- the comparator
public String toString()
toString
in class Object
public String getLabel()
ProcessorDefinition
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 Processor createProcessor(RouteContext routeContext) throws Exception
ProcessorDefinition
createProcessor
in class ProcessorDefinition<ResequenceDefinition>
Exception
protected Resequencer createBatchResequencer(RouteContext routeContext, BatchResequencerConfig config) throws Exception
Resequencer
instance applying the given config
.
routeContext
- route context.config
- batch resequencer configuration.
Exception
- can be thrownprotected StreamResequencer createStreamResequencer(RouteContext routeContext, StreamResequencerConfig config) throws Exception
StreamResequencer
instance applying the given config
.
routeContext
- route context.config
- stream resequencer configuration.
Exception
- can be thrwon
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |