|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.model.OptionalIdentifiedDefinition
org.apache.camel.model.ProcessorDefinition<AggregateDefinition>
org.apache.camel.model.AggregateDefinition
public class AggregateDefinition
Represents an XML <aggregate/> element
Field Summary |
---|
Fields inherited from class org.apache.camel.model.ProcessorDefinition |
---|
errorHandlerBuilder, errorHandlerRef, log |
Constructor Summary | |
---|---|
AggregateDefinition()
|
|
AggregateDefinition(Expression correlationExpression)
|
|
AggregateDefinition(Expression correlationExpression,
AggregationStrategy aggregationStrategy)
|
|
AggregateDefinition(ExpressionDefinition correlationExpression)
|
|
AggregateDefinition(Predicate predicate)
|
Method Summary | |
---|---|
AggregateDefinition |
aggregationCollection(AggregationCollection aggregationCollection)
Sets the aggregate collection to use |
AggregateDefinition |
aggregationStrategy(AggregationStrategy aggregationStrategy)
Sets the aggregate strategy to use |
AggregateDefinition |
batchSize(int batchSize)
Sets the in batch size for number of exchanges received |
AggregateDefinition |
batchSizeFromConsumer()
Enables the batch completion mode where we aggregate from a BatchConsumer
and aggregate the total number of exchanges the BatchConsumer has reported
as total by setting the exchange property Exchange.BATCH_SIZE . |
AggregateDefinition |
batchTimeout(long batchTimeout)
Sets the batch timeout |
protected void |
checkNoCompletedPredicate()
|
AggregateDefinition |
collectionRef(String collectionRef)
Sets the aggregate collection to use |
ExpressionClause<AggregateDefinition> |
completionPredicate()
Sets the predicate used to determine if the aggregation is completed |
AggregateDefinition |
completionPredicate(Predicate predicate)
Sets the predicate used to determine if the aggregation is completed |
protected Aggregator |
createAggregator(RouteContext routeContext)
|
ExpressionClause<AggregateDefinition> |
createAndSetExpression()
|
Processor |
createProcessor(RouteContext routeContext)
|
AggregationCollection |
getAggregationCollection()
|
AggregationStrategy |
getAggregationStrategy()
|
Integer |
getBatchSize()
|
Boolean |
getBatchSizeFromConsumer()
|
Long |
getBatchTimeout()
|
String |
getCollectionRef()
|
ExpressionSubElementDefinition |
getCompletionPredicate()
|
ExpressionSubElementDefinition |
getCorrelationExpression()
|
ExpressionDefinition |
getExpression()
|
Boolean |
getGroupExchanges()
|
String |
getLabel()
Returns a label to describe this node such as the expression if some kind of expression node |
Integer |
getOutBatchSize()
|
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 |
String |
getStrategyRef()
|
AggregateDefinition |
groupExchanges()
Enables grouped exchanges, so the aggregator will group all aggregated exchanges into a single combined Exchange holding all the aggregated exchanges in a List as a exchange
property with the key Exchange.GROUPED_EXCHANGE . |
AggregateDefinition |
outBatchSize(int batchSize)
Sets the out batch size for number of exchanges sent |
void |
setAggregationCollection(AggregationCollection aggregationCollection)
|
void |
setAggregationStrategy(AggregationStrategy aggregationStrategy)
|
void |
setBatchSize(Integer batchSize)
|
void |
setBatchSizeFromConsumer(Boolean batchSizeFromConsumer)
|
void |
setBatchTimeout(Long batchTimeout)
|
void |
setCollectionRef(String collectionRef)
|
void |
setCompletionPredicate(ExpressionSubElementDefinition completionPredicate)
|
void |
setCorrelationExpression(ExpressionSubElementDefinition correlationExpression)
|
void |
setExpression(ExpressionDefinition expression)
|
void |
setGroupExchanges(Boolean groupExchanges)
|
void |
setOutBatchSize(Integer outBatchSize)
|
void |
setOutputs(List<ProcessorDefinition> outputs)
|
void |
setStrategyRef(String strategyRef)
|
AggregateDefinition |
strategyRef(String strategyRef)
Sets the aggregate strategy to use |
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 AggregateDefinition()
public AggregateDefinition(Predicate predicate)
public AggregateDefinition(Expression correlationExpression)
public AggregateDefinition(ExpressionDefinition correlationExpression)
public AggregateDefinition(Expression correlationExpression, AggregationStrategy aggregationStrategy)
Method Detail |
---|
public String toString()
toString
in class Object
public String getShortName()
OptionalIdentifiedDefinition
getShortName
in class OptionalIdentifiedDefinition
public String getLabel()
ProcessorDefinition
getLabel
in class ProcessorDefinition<AggregateDefinition>
public Processor createProcessor(RouteContext routeContext) throws Exception
createProcessor
in class ProcessorDefinition<AggregateDefinition>
Exception
public ExpressionClause<AggregateDefinition> createAndSetExpression()
protected Aggregator createAggregator(RouteContext routeContext) throws Exception
Exception
public AggregationCollection getAggregationCollection()
public void setAggregationCollection(AggregationCollection aggregationCollection)
public AggregationStrategy getAggregationStrategy()
public void setAggregationStrategy(AggregationStrategy aggregationStrategy)
public Integer getBatchSize()
public void setBatchSize(Integer batchSize)
public Integer getOutBatchSize()
public void setOutBatchSize(Integer outBatchSize)
public Long getBatchTimeout()
public void setBatchTimeout(Long batchTimeout)
public String getStrategyRef()
public void setStrategyRef(String strategyRef)
public String getCollectionRef()
public void setCollectionRef(String collectionRef)
public void setCompletionPredicate(ExpressionSubElementDefinition completionPredicate)
public ExpressionSubElementDefinition getCompletionPredicate()
public Boolean getGroupExchanges()
public void setGroupExchanges(Boolean groupExchanges)
public Boolean getBatchSizeFromConsumer()
public void setBatchSizeFromConsumer(Boolean batchSizeFromConsumer)
public AggregateDefinition batchSizeFromConsumer()
BatchConsumer
and aggregate the total number of exchanges the BatchConsumer
has reported
as total by setting the exchange property Exchange.BATCH_SIZE
.
public AggregateDefinition batchSize(int batchSize)
batchSize
- the batch size
public AggregateDefinition outBatchSize(int batchSize)
batchSize
- the batch size
public AggregateDefinition batchTimeout(long batchTimeout)
batchTimeout
- the timeout in millis
public AggregateDefinition aggregationCollection(AggregationCollection aggregationCollection)
aggregationCollection
- the aggregate collection to use
public AggregateDefinition aggregationStrategy(AggregationStrategy aggregationStrategy)
aggregationStrategy
- the aggregate strategy to use
public AggregateDefinition collectionRef(String collectionRef)
collectionRef
- reference to the aggregate collection to lookup in the registry
public AggregateDefinition strategyRef(String strategyRef)
strategyRef
- reference to the strategy to lookup in the registry
public AggregateDefinition groupExchanges()
List
as a exchange
property with the key Exchange.GROUPED_EXCHANGE
.
public ExpressionClause<AggregateDefinition> completionPredicate()
public AggregateDefinition completionPredicate(Predicate predicate)
predicate
- the predicateprotected void checkNoCompletedPredicate()
public void setCorrelationExpression(ExpressionSubElementDefinition correlationExpression)
public ExpressionSubElementDefinition getCorrelationExpression()
public ExpressionDefinition getExpression()
public void setExpression(ExpressionDefinition expression)
public List<ProcessorDefinition> getOutputs()
getOutputs
in class ProcessorDefinition<AggregateDefinition>
public void setOutputs(List<ProcessorDefinition> outputs)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |