|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.model.OptionalIdentifiedType<Type>
org.apache.camel.model.ProcessorType<ProcessorType>
org.apache.camel.model.ResequencerType
public class ResequencerType
Represents an XML <resequencer/> element
Field Summary |
---|
Fields inherited from class org.apache.camel.model.ProcessorType |
---|
DEFAULT_TRACE_CATEGORY |
Fields inherited from class org.apache.camel.model.OptionalIdentifiedType |
---|
nodeCounters |
Constructor Summary | |
---|---|
ResequencerType()
|
|
ResequencerType(List<Expression> expressions)
|
Method Summary | |
---|---|
ResequencerType |
batch()
Configures the batch-based resequencing algorithm using the default configuration. |
ResequencerType |
batch(BatchResequencerConfig config)
Configures the batch-based resequencing algorithm using the given BatchResequencerConfig . |
ResequencerType |
capacity(int capacity)
|
ResequencerType |
comparator(ExpressionResultComparator<Exchange> comparator)
|
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 . |
ResequencerType |
expression(ExpressionType expression)
|
BatchResequencerConfig |
getBatchConfig()
|
BatchResequencerConfig |
getBatchConfig(BatchResequencerConfig defaultConfig)
|
List<ExpressionType> |
getExpressions()
|
String |
getLabel()
Returns a label to describe this node such as the expression if some kind of expression node |
List<ProcessorType<?>> |
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<ProcessorType<?>> outputs)
|
void |
setStreamConfig(StreamResequencerConfig streamConfig)
|
ResequencerType |
size(int batchSize)
|
ResequencerType |
stream()
Configures the stream-based resequencing algorithm using the default configuration. |
ResequencerType |
stream(StreamResequencerConfig config)
Configures the stream-based resequencing algorithm using the given StreamResequencerConfig . |
ResequencerType |
timeout(long timeout)
|
String |
toString()
|
Methods inherited from class org.apache.camel.model.OptionalIdentifiedType |
---|
createId, describe, description, description, getDescription, getId, getNodeCounter, id, idOrCreate, setDescription, setId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ResequencerType()
public ResequencerType(List<Expression> expressions)
Method Detail |
---|
public String getShortName()
OptionalIdentifiedType
getShortName
in class OptionalIdentifiedType<ProcessorType>
public ResequencerType stream()
this
instance.public ResequencerType batch()
this
instance.public ResequencerType stream(StreamResequencerConfig config)
StreamResequencerConfig
.
this
instance.public ResequencerType batch(BatchResequencerConfig config)
BatchResequencerConfig
.
this
instance.public ResequencerType expression(ExpressionType expression)
public String toString()
toString
in class Object
public String getLabel()
ProcessorType
getLabel
in class ProcessorType<ProcessorType>
public List<ExpressionType> getExpressions()
public List<ProcessorType<?>> getOutputs()
getOutputs
in class ProcessorType<ProcessorType>
public void setOutputs(List<ProcessorType<?>> outputs)
public BatchResequencerConfig getBatchConfig()
public BatchResequencerConfig getBatchConfig(BatchResequencerConfig defaultConfig)
public StreamResequencerConfig getStreamConfig()
public void setBatchConfig(BatchResequencerConfig batchConfig)
public void setStreamConfig(StreamResequencerConfig streamConfig)
public ResequencerType timeout(long timeout)
public ResequencerType size(int batchSize)
public ResequencerType capacity(int capacity)
public ResequencerType comparator(ExpressionResultComparator<Exchange> comparator)
public Processor createProcessor(RouteContext routeContext) throws Exception
createProcessor
in class ProcessorType<ProcessorType>
Exception
protected Resequencer createBatchResequencer(RouteContext routeContext, BatchResequencerConfig config) throws Exception
Resequencer
instance applying the given
config
.
routeContext
- route context.config
- batch resequencer configuration.
Exception
protected StreamResequencer createStreamResequencer(RouteContext routeContext, StreamResequencerConfig config) throws Exception
StreamResequencer
instance applying the given
config
.
routeContext
- route context.config
- stream resequencer configuration.
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |