|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.model.OptionalIdentifiedDefinition<Type> org.apache.camel.model.ProcessorDefinition<ProcessorDefinition> org.apache.camel.model.ResequenceDefinition
public class ResequenceDefinition
Represents an XML <resequence/> element
Field Summary |
---|
Fields inherited from class org.apache.camel.model.ProcessorDefinition |
---|
log |
Constructor Summary | |
---|---|
ResequenceDefinition()
|
|
ResequenceDefinition(List<Expression> expressions)
|
Method Summary | |
---|---|
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)
|
protected StreamResequencer |
createStreamResequencer(RouteContext routeContext,
StreamResequencerConfig config)
Creates a StreamResequencer instance applying the given
config . |
ResequenceDefinition |
expression(ExpressionDefinition expression)
Sets the expression to use for reordering |
BatchResequencerConfig |
getBatchConfig()
|
BatchResequencerConfig |
getBatchConfig(BatchResequencerConfig defaultConfig)
|
List<Expression> |
getExpressionList()
|
List<ExpressionDefinition> |
getExpressions()
|
String |
getLabel()
Returns a label to describe this node such as the expression if some kind of expression node |
List<ProcessorDefinition> |
getOutputs()
|
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()
|
void |
setBatchConfig(BatchResequencerConfig batchConfig)
|
void |
setOutputs(List<ProcessorDefinition> outputs)
|
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, 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()
public ResequenceDefinition(List<Expression> expressions)
Method Detail |
---|
public String getShortName()
OptionalIdentifiedDefinition
getShortName
in class OptionalIdentifiedDefinition<ProcessorDefinition>
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 expression(ExpressionDefinition expression)
expression
- the expression
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 comparator(ExpressionResultComparator comparator)
comparator
- the comparator
public String toString()
toString
in class Object
public String getLabel()
ProcessorDefinition
getLabel
in class ProcessorDefinition<ProcessorDefinition>
public List<ExpressionDefinition> getExpressions()
public List<Expression> getExpressionList()
public List<ProcessorDefinition> getOutputs()
getOutputs
in class ProcessorDefinition<ProcessorDefinition>
public void setOutputs(List<ProcessorDefinition> outputs)
public BatchResequencerConfig getBatchConfig()
public BatchResequencerConfig getBatchConfig(BatchResequencerConfig defaultConfig)
public StreamResequencerConfig getStreamConfig()
public void setBatchConfig(BatchResequencerConfig batchConfig)
public void setStreamConfig(StreamResequencerConfig streamConfig)
public Processor createProcessor(RouteContext routeContext) throws Exception
createProcessor
in class ProcessorDefinition<ProcessorDefinition>
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 |