@Metadata(label="eip,routing") public class AggregateDefinition extends OutputDefinition<AggregateDefinition> implements ExecutorServiceAwareDefinition<AggregateDefinition>
outputs
inheritErrorHandler, log
Constructor and Description |
---|
AggregateDefinition() |
AggregateDefinition(org.apache.camel.Expression expression) |
AggregateDefinition(org.apache.camel.Expression correlationExpression,
org.apache.camel.AggregationStrategy aggregationStrategy) |
AggregateDefinition(ExpressionDefinition correlationExpression) |
AggregateDefinition(org.apache.camel.Predicate predicate) |
Modifier and Type | Method and Description |
---|---|
AggregateDefinition |
aggregateController(org.apache.camel.processor.aggregate.AggregateController aggregateController)
To use a
AggregateController to allow external sources to control
this aggregator. |
AggregateDefinition |
aggregateController(Supplier<org.apache.camel.processor.aggregate.AggregateController> aggregateController)
To use a
AggregateController to allow external sources to control
this aggregator. |
AggregateDefinition |
aggregationRepository(org.apache.camel.spi.AggregationRepository aggregationRepository)
Sets the custom aggregate repository to use.
|
AggregateDefinition |
aggregationRepository(Supplier<org.apache.camel.spi.AggregationRepository> aggregationRepository)
Sets the custom aggregate repository to use.
|
AggregateDefinition |
aggregationRepositoryRef(String aggregationRepositoryRef)
Sets the custom aggregate repository to use.
|
AggregationStrategyClause<AggregateDefinition> |
aggregationStrategy()
Sets the AggregationStrategy to use with a fluent builder.
|
AggregateDefinition |
aggregationStrategy(org.apache.camel.AggregationStrategy aggregationStrategy)
Sets the aggregate strategy to use
|
AggregateDefinition |
aggregationStrategy(Supplier<org.apache.camel.AggregationStrategy> aggregationStrategy)
Sets the aggregate strategy to use
|
AggregateDefinition |
aggregationStrategyMethodAllowNull()
Sets allowing null when using a POJO as
AggregationStrategy . |
AggregateDefinition |
aggregationStrategyMethodName(String methodName)
Sets the method name to use when using a POJO as
AggregationStrategy . |
AggregateDefinition |
aggregationStrategyRef(String aggregationStrategyRef)
Sets the aggregate strategy to use
|
protected void |
checkNoCompletedPredicate() |
AggregateDefinition |
closeCorrelationKeyOnCompletion(int capacity)
Closes a correlation key when its complete.
|
AggregateDefinition |
completeAllOnStop()
Indicates to wait to complete all current and partial (pending) aggregated exchanges when the context is stopped.
|
PredicateClause<AggregateDefinition> |
completion()
A Predicate to indicate when an aggregated exchange is complete.
|
AggregateDefinition |
completion(org.apache.camel.Predicate predicate)
A Predicate to indicate when an aggregated exchange is complete.
|
AggregateDefinition |
completionFromBatchConsumer()
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 checking the
exchange property Exchange.BATCH_COMPLETE when its complete. |
AggregateDefinition |
completionInterval(long completionInterval)
A repeating period in millis by which the aggregator will complete all current aggregated exchanges.
|
AggregateDefinition |
completionInterval(String completionInterval)
A repeating period in millis by which the aggregator will complete all current aggregated exchanges.
|
AggregateDefinition |
completionOnNewCorrelationGroup()
Enables completion on all previous groups when a new incoming correlation group.
|
PredicateClause<AggregateDefinition> |
completionPredicate()
A Predicate to indicate when an aggregated exchange is complete.
|
AggregateDefinition |
completionPredicate(org.apache.camel.Predicate predicate)
A Predicate to indicate when an aggregated exchange is complete.
|
AggregateDefinition |
completionSize(org.apache.camel.Expression completionSize)
Number of messages aggregated before the aggregation is complete.
|
AggregateDefinition |
completionSize(int completionSize)
Number of messages aggregated before the aggregation is complete.
|
AggregateDefinition |
completionSize(String completionSize)
Number of messages aggregated before the aggregation is complete.
|
AggregateDefinition |
completionTimeout(org.apache.camel.Expression completionTimeout)
Time in millis that an aggregated exchange should be inactive before its complete (timeout).
|
AggregateDefinition |
completionTimeout(long completionTimeout)
Time in millis that an aggregated exchange should be inactive before its complete (timeout).
|
AggregateDefinition |
completionTimeout(String completionTimeout)
Time in millis that an aggregated exchange should be inactive before its complete (timeout).
|
AggregateDefinition |
completionTimeoutCheckerInterval(long completionTimeoutCheckerInterval)
Interval in millis that is used by the background task that checks for timeouts
(
TimeoutMap ). |
void |
configureChild(ProcessorDefinition<?> output)
Strategy for children to do any custom configuration
|
protected String |
description() |
AggregateDefinition |
discardOnAggregationFailure()
Discards the aggregated message when aggregation failed (an exception was thrown from
AggregationStrategy . |
AggregateDefinition |
discardOnCompletionTimeout()
Discards the aggregated message on completion timeout.
|
AggregateDefinition |
eagerCheckCompletion()
Use eager completion checking which means that the completionPredicate will use the incoming Exchange.
|
AggregateDefinition |
executorService(ExecutorService executorService)
If using parallelProcessing you can specify a custom thread pool to be used.
|
AggregateDefinition |
executorServiceRef(String executorServiceRef)
If using parallelProcessing you can specify a custom thread pool to be used.
|
AggregateDefinition |
forceCompletionOnStop()
Indicates to complete all current aggregated exchanges when the context is stopped
|
org.apache.camel.processor.aggregate.AggregateController |
getAggregateController() |
String |
getAggregateControllerRef() |
org.apache.camel.spi.AggregationRepository |
getAggregationRepository() |
String |
getAggregationRepositoryRef() |
org.apache.camel.AggregationStrategy |
getAggregationStrategy() |
String |
getAggregationStrategyMethodName() |
String |
getAggregationStrategyRef() |
String |
getCloseCorrelationKeyOnCompletion() |
String |
getCompleteAllOnStop() |
String |
getCompletionFromBatchConsumer() |
String |
getCompletionInterval() |
String |
getCompletionOnNewCorrelationGroup() |
ExpressionSubElementDefinition |
getCompletionPredicate() |
String |
getCompletionSize() |
ExpressionSubElementDefinition |
getCompletionSizeExpression() |
String |
getCompletionTimeout() |
String |
getCompletionTimeoutCheckerInterval() |
ExpressionSubElementDefinition |
getCompletionTimeoutExpression() |
ExpressionSubElementDefinition |
getCorrelationExpression() |
String |
getDiscardOnAggregationFailure() |
String |
getDiscardOnCompletionTimeout() |
String |
getEagerCheckCompletion() |
ExecutorService |
getExecutorService() |
String |
getExecutorServiceRef() |
ExpressionDefinition |
getExpression() |
String |
getForceCompletionOnStop() |
String |
getIgnoreInvalidCorrelationKeys() |
String |
getLabel()
Returns a label to describe this node such as the expression if some kind of expression node
|
String |
getOptimisticLocking() |
org.apache.camel.processor.aggregate.OptimisticLockRetryPolicy |
getOptimisticLockRetryPolicy() |
OptimisticLockRetryPolicyDefinition |
getOptimisticLockRetryPolicyDefinition() |
List<ProcessorDefinition<?>> |
getOutputs() |
String |
getParallelProcessing() |
String |
getShortName() |
String |
getStrategyMethodAllowNull() |
String |
getStrategyMethodName() |
String |
getStrategyRef() |
ScheduledExecutorService |
getTimeoutCheckerExecutorService() |
String |
getTimeoutCheckerExecutorServiceRef() |
AggregateDefinition |
ignoreInvalidCorrelationKeys()
If a correlation key cannot be successfully evaluated it will be ignored by logging a DEBUG and then just ignore
the incoming Exchange.
|
AggregateDefinition |
optimisticLocking()
Turns on using optimistic locking, which requires the aggregationRepository being used, is supporting this by
implementing
OptimisticLockingAggregationRepository . |
AggregateDefinition |
optimisticLockRetryPolicy(org.apache.camel.processor.aggregate.OptimisticLockRetryPolicy policy)
Allows to configure retry settings when using optimistic locking.
|
AggregateDefinition |
parallelProcessing()
When aggregated are completed they are being send out of the aggregator.
|
AggregateDefinition |
parallelProcessing(boolean parallelProcessing)
When aggregated are completed they are being send out of the aggregator.
|
void |
setAggregateController(org.apache.camel.processor.aggregate.AggregateController aggregateController) |
void |
setAggregateControllerRef(String aggregateControllerRef)
To use a
AggregateController to allow external sources to control
this aggregator. |
void |
setAggregationRepository(org.apache.camel.spi.AggregationRepository aggregationRepository) |
void |
setAggregationRepositoryRef(String aggregationRepositoryRef) |
void |
setAggregationStrategy(org.apache.camel.AggregationStrategy aggregationStrategy)
The AggregationStrategy to use.
|
void |
setAggregationStrategyMethodName(String strategyMethodName)
This option can be used to explicit declare the method name to use, when using POJOs as the AggregationStrategy.
|
void |
setAggregationStrategyRef(String aggregationStrategyRef)
A reference to lookup the AggregationStrategy in the Registry.
|
void |
setCloseCorrelationKeyOnCompletion(String closeCorrelationKeyOnCompletion) |
void |
setCompleteAllOnStop(String completeAllOnStop) |
void |
setCompletionFromBatchConsumer(String completionFromBatchConsumer) |
void |
setCompletionInterval(String completionInterval) |
void |
setCompletionOnNewCorrelationGroup(String completionOnNewCorrelationGroup) |
void |
setCompletionPredicate(ExpressionSubElementDefinition completionPredicate) |
void |
setCompletionSize(String completionSize) |
void |
setCompletionSizeExpression(ExpressionSubElementDefinition completionSizeExpression)
Number of messages aggregated before the aggregation is complete.
|
void |
setCompletionTimeout(String completionTimeout) |
void |
setCompletionTimeoutCheckerInterval(String completionTimeoutCheckerInterval) |
void |
setCompletionTimeoutExpression(ExpressionSubElementDefinition completionTimeoutExpression)
Time in millis that an aggregated exchange should be inactive before its complete (timeout).
|
void |
setCorrelationExpression(ExpressionSubElementDefinition correlationExpression)
The expression used to calculate the correlation key to use for aggregation.
|
void |
setDiscardOnAggregationFailure(String discardOnAggregationFailure) |
void |
setDiscardOnCompletionTimeout(String discardOnCompletionTimeout) |
void |
setEagerCheckCompletion(String eagerCheckCompletion) |
void |
setExecutorService(ExecutorService executorService) |
void |
setExecutorServiceRef(String executorServiceRef) |
void |
setExpression(org.apache.camel.Expression expression) |
void |
setExpression(ExpressionDefinition expression) |
void |
setForceCompletionOnStop(String forceCompletionOnStop) |
void |
setIgnoreInvalidCorrelationKeys(String ignoreInvalidCorrelationKeys) |
void |
setOptimisticLocking(String optimisticLocking) |
void |
setOptimisticLockRetryPolicy(org.apache.camel.processor.aggregate.OptimisticLockRetryPolicy optimisticLockRetryPolicy) |
void |
setOptimisticLockRetryPolicyDefinition(OptimisticLockRetryPolicyDefinition optimisticLockRetryPolicyDefinition) |
void |
setOutputs(List<ProcessorDefinition<?>> outputs) |
void |
setParallelProcessing(String parallelProcessing) |
void |
setStrategyMethodAllowNull(String strategyMethodAllowNull)
If this option is false then the aggregate method is not used for the very first aggregation.
|
void |
setStrategyMethodName(String strategyMethodName)
This option can be used to explicit declare the method name to use, when using POJOs as the AggregationStrategy.
|
void |
setStrategyRef(String strategyRef)
A reference to lookup the AggregationStrategy in the Registry.
|
void |
setTimeoutCheckerExecutorService(ScheduledExecutorService timeoutCheckerExecutorService) |
void |
setTimeoutCheckerExecutorServiceRef(String timeoutCheckerExecutorServiceRef) |
AggregationStrategyClause<AggregateDefinition> |
strategy()
Deprecated.
|
AggregateDefinition |
strategy(org.apache.camel.AggregationStrategy aggregationStrategy)
Deprecated.
|
AggregateDefinition |
timeoutCheckerExecutorService(ScheduledExecutorService executorService)
If using either of the completionTimeout, completionTimeoutExpression, or completionInterval options a background
thread is created to check for the completion for every aggregator.
|
AggregateDefinition |
timeoutCheckerExecutorService(Supplier<ScheduledExecutorService> executorService)
If using either of the completionTimeout, completionTimeoutExpression, or completionInterval options a background
thread is created to check for the completion for every aggregator.
|
AggregateDefinition |
timeoutCheckerExecutorServiceRef(String executorServiceRef)
If using either of the completionTimeout, completionTimeoutExpression, or completionInterval options a background
thread is created to check for the completion for every aggregator.
|
String |
toString() |
addInterceptStrategy, addOutput, aggregate, aggregate, aggregate, aggregate, bean, bean, bean, bean, bean, bean, bean, bean, bean, bean, bean, choice, circuitBreaker, claimCheck, claimCheck, claimCheck, claimCheck, clearOutput, convertBodyTo, convertBodyTo, delay, delay, delay, doTry, dynamicRouter, dynamicRouter, end, endChoice, endCircuitBreaker, endDoTry, endParent, endRest, enrich, enrich, enrich, enrich, enrich, enrich, enrich, enrich, enrich, enrichWith, enrichWith, enrichWith, enrichWith, enrichWith, enrichWith, filter, filter, filter, filter, getIndex, getInterceptStrategies, getParent, id, idempotentConsumer, idempotentConsumer, idempotentConsumer, inheritErrorHandler, inOnly, inOnly, inOnly, inOnly, inOnly, inOut, inOut, inOut, inOut, inOut, isAbstract, isInheritErrorHandler, isTopLevelOnly, isWrappingEntireOutput, kamelet, 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, policy, policy, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrichWith, pollEnrichWith, pollEnrichWith, 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, sample, script, script, serviceCall, serviceCall, serviceCall, setBody, setBody, setBody, setExchangePattern, setHeader, setHeader, setHeader, setInheritErrorHandler, setParent, setProperty, setProperty, setProperty, sort, sort, sort, split, 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, to, to, to, to, toD, toD, toD, toD, toD, toD, toD, toF, transacted, transacted, transform, transform, unmarshal, unmarshal, unmarshal, unmarshal, validate, validate, validate, wireTap, wireTap, wireTap
description, description, getCustomId, getDescription, getDescriptionText, getId, hasCustomIdAssigned, idOrCreate, setCustomId, setDescription, setGeneratedId, setId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
executorService
public AggregateDefinition()
public AggregateDefinition(@AsPredicate org.apache.camel.Predicate predicate)
public AggregateDefinition(org.apache.camel.Expression expression)
public AggregateDefinition(ExpressionDefinition correlationExpression)
public AggregateDefinition(org.apache.camel.Expression correlationExpression, org.apache.camel.AggregationStrategy aggregationStrategy)
public String toString()
toString
in class OutputDefinition<AggregateDefinition>
protected String description()
public String getShortName()
getShortName
in interface org.apache.camel.NamedNode
getShortName
in class OutputDefinition<AggregateDefinition>
public String getLabel()
ProcessorDefinition
getLabel
in interface org.apache.camel.NamedNode
getLabel
in class ProcessorDefinition<AggregateDefinition>
public void configureChild(ProcessorDefinition<?> output)
ProcessorDefinition
configureChild
in class ProcessorDefinition<AggregateDefinition>
output
- the child to be added as output to thispublic org.apache.camel.AggregationStrategy getAggregationStrategy()
public void setAggregationStrategy(org.apache.camel.AggregationStrategy aggregationStrategy)
public String getAggregationStrategyRef()
public void setAggregationStrategyRef(String aggregationStrategyRef)
public String getStrategyRef()
public void setStrategyRef(String strategyRef)
public String getAggregationStrategyMethodName()
public void setAggregationStrategyMethodName(String strategyMethodName)
public String getStrategyMethodAllowNull()
public String getStrategyMethodName()
public void setStrategyMethodName(String strategyMethodName)
public void setStrategyMethodAllowNull(String strategyMethodAllowNull)
public void setCorrelationExpression(ExpressionSubElementDefinition correlationExpression)
public ExpressionSubElementDefinition getCorrelationExpression()
public String getCompletionSize()
public void setCompletionSize(String completionSize)
public OptimisticLockRetryPolicyDefinition getOptimisticLockRetryPolicyDefinition()
public void setOptimisticLockRetryPolicyDefinition(OptimisticLockRetryPolicyDefinition optimisticLockRetryPolicyDefinition)
public org.apache.camel.processor.aggregate.OptimisticLockRetryPolicy getOptimisticLockRetryPolicy()
public void setOptimisticLockRetryPolicy(org.apache.camel.processor.aggregate.OptimisticLockRetryPolicy optimisticLockRetryPolicy)
public String getCompletionInterval()
public void setCompletionInterval(String completionInterval)
public String getCompletionTimeout()
public void setCompletionTimeout(String completionTimeout)
public String getCompletionTimeoutCheckerInterval()
public void setCompletionTimeoutCheckerInterval(String completionTimeoutCheckerInterval)
public ExpressionSubElementDefinition getCompletionPredicate()
public void setCompletionPredicate(ExpressionSubElementDefinition completionPredicate)
public ExpressionSubElementDefinition getCompletionTimeoutExpression()
public void setCompletionTimeoutExpression(ExpressionSubElementDefinition completionTimeoutExpression)
completionTimeoutExpression
- the timeout as an Expression
which is evaluated as a Long
typepublic ExpressionSubElementDefinition getCompletionSizeExpression()
public void setCompletionSizeExpression(ExpressionSubElementDefinition completionSizeExpression)
completionSizeExpression
- the completion size as an Expression
which is evaluated
as a Integer
typepublic String getCompletionFromBatchConsumer()
public void setCompletionFromBatchConsumer(String completionFromBatchConsumer)
public String getCompletionOnNewCorrelationGroup()
public void setCompletionOnNewCorrelationGroup(String completionOnNewCorrelationGroup)
public ExecutorService getExecutorService()
getExecutorService
in interface org.apache.camel.ExecutorServiceAware
public void setExecutorService(ExecutorService executorService)
setExecutorService
in interface org.apache.camel.ExecutorServiceAware
public String getOptimisticLocking()
public void setOptimisticLocking(String optimisticLocking)
public String getParallelProcessing()
public void setParallelProcessing(String parallelProcessing)
public String getExecutorServiceRef()
getExecutorServiceRef
in interface org.apache.camel.ExecutorServiceAware
public void setExecutorServiceRef(String executorServiceRef)
setExecutorServiceRef
in interface org.apache.camel.ExecutorServiceAware
public String getEagerCheckCompletion()
public void setEagerCheckCompletion(String eagerCheckCompletion)
public String getIgnoreInvalidCorrelationKeys()
public void setIgnoreInvalidCorrelationKeys(String ignoreInvalidCorrelationKeys)
public String getCloseCorrelationKeyOnCompletion()
public void setCloseCorrelationKeyOnCompletion(String closeCorrelationKeyOnCompletion)
public org.apache.camel.spi.AggregationRepository getAggregationRepository()
public void setAggregationRepository(org.apache.camel.spi.AggregationRepository aggregationRepository)
public String getAggregationRepositoryRef()
public void setAggregationRepositoryRef(String aggregationRepositoryRef)
public String getDiscardOnCompletionTimeout()
public void setDiscardOnCompletionTimeout(String discardOnCompletionTimeout)
public String getDiscardOnAggregationFailure()
public void setDiscardOnAggregationFailure(String discardOnAggregationFailure)
public void setTimeoutCheckerExecutorService(ScheduledExecutorService timeoutCheckerExecutorService)
public ScheduledExecutorService getTimeoutCheckerExecutorService()
public void setTimeoutCheckerExecutorServiceRef(String timeoutCheckerExecutorServiceRef)
public String getTimeoutCheckerExecutorServiceRef()
public String getForceCompletionOnStop()
public void setForceCompletionOnStop(String forceCompletionOnStop)
public String getCompleteAllOnStop()
public void setCompleteAllOnStop(String completeAllOnStop)
public org.apache.camel.processor.aggregate.AggregateController getAggregateController()
public void setAggregateController(org.apache.camel.processor.aggregate.AggregateController aggregateController)
public String getAggregateControllerRef()
public void setAggregateControllerRef(String aggregateControllerRef)
AggregateController
to allow external sources to control
this aggregator.public AggregateDefinition eagerCheckCompletion()
public AggregateDefinition ignoreInvalidCorrelationKeys()
public AggregateDefinition closeCorrelationKeyOnCompletion(int capacity)
capacity
- the maximum capacity of the closed correlation key cache. Use 0 or negative value for
unbounded capacity.public AggregateDefinition discardOnCompletionTimeout()
public AggregateDefinition discardOnAggregationFailure()
AggregationStrategy
. This means the partly aggregated message is dropped and not sent out of the
aggregator.
This option cannot be used together with completionFromBatchConsumer.public AggregateDefinition completionFromBatchConsumer()
BatchConsumer
and aggregate
the total number of exchanges the BatchConsumer
has reported as total by checking the
exchange property Exchange.BATCH_COMPLETE
when its complete.
This option cannot be used together with discardOnAggregationFailure.public AggregateDefinition completionOnNewCorrelationGroup()
public AggregateDefinition completionSize(String completionSize)
completionSize
- the completion size, must be a an expression evaluating to positive numberpublic AggregateDefinition completionSize(int completionSize)
completionSize
- the completion size, must be a positive numberpublic AggregateDefinition completionSize(org.apache.camel.Expression completionSize)
completionSize
- the completion size as an Expression
which is evaluated as a
Integer
typepublic AggregateDefinition completionInterval(long completionInterval)
completionInterval
- the interval in millis, must be a positive valuepublic AggregateDefinition completionInterval(String completionInterval)
completionInterval
- the interval in millis, must be a positive valuepublic AggregateDefinition completionTimeout(String completionTimeout)
completionTimeout
- the timeout in millis, must be a positive valuepublic AggregateDefinition completionTimeout(long completionTimeout)
completionTimeout
- the timeout in millis, must be a positive valuepublic AggregateDefinition completionTimeout(org.apache.camel.Expression completionTimeout)
completionTimeout
- the timeout as an Expression
which is evaluated as a Long
typepublic AggregateDefinition completionTimeoutCheckerInterval(long completionTimeoutCheckerInterval)
TimeoutMap
).
By default the timeout checker runs every second. The timeout is an approximation and there is no guarantee that
the a timeout is triggered exactly after the timeout value. It is not recommended to use very low timeout values
or checker intervals.completionTimeoutCheckerInterval
- the interval in millis, must be a positive valuepublic AggregationStrategyClause<AggregateDefinition> aggregationStrategy()
@Deprecated public AggregationStrategyClause<AggregateDefinition> strategy()
aggregationStrategy()
@Deprecated public AggregateDefinition strategy(org.apache.camel.AggregationStrategy aggregationStrategy)
aggregationStrategy(AggregationStrategy)
aggregationStrategy
- the aggregate strategy to usepublic AggregateDefinition aggregationStrategy(org.apache.camel.AggregationStrategy aggregationStrategy)
aggregationStrategy
- the aggregate strategy to usepublic AggregateDefinition aggregationStrategy(Supplier<org.apache.camel.AggregationStrategy> aggregationStrategy)
aggregationStrategy
- the aggregate strategy to usepublic AggregateDefinition aggregationStrategyRef(String aggregationStrategyRef)
aggregationStrategyRef
- reference to the strategy to lookup in the registrypublic AggregateDefinition aggregationStrategyMethodName(String methodName)
AggregationStrategy
.methodName
- the method name to callpublic AggregateDefinition aggregationStrategyMethodAllowNull()
AggregationStrategy
.public AggregateDefinition aggregationRepository(org.apache.camel.spi.AggregationRepository aggregationRepository)
MemoryAggregationRepository
aggregationRepository
- the aggregate repository to usepublic AggregateDefinition aggregationRepository(Supplier<org.apache.camel.spi.AggregationRepository> aggregationRepository)
MemoryAggregationRepository
aggregationRepository
- the aggregate repository to usepublic AggregateDefinition aggregationRepositoryRef(String aggregationRepositoryRef)
MemoryAggregationRepository
aggregationRepositoryRef
- reference to the repository to lookup in the registrypublic AggregateDefinition completionPredicate(@AsPredicate org.apache.camel.Predicate predicate)
@AsPredicate public PredicateClause<AggregateDefinition> completionPredicate()
@AsPredicate public PredicateClause<AggregateDefinition> completion()
public AggregateDefinition completion(@AsPredicate org.apache.camel.Predicate predicate)
public AggregateDefinition forceCompletionOnStop()
public AggregateDefinition completeAllOnStop()
public AggregateDefinition parallelProcessing()
public AggregateDefinition parallelProcessing(boolean parallelProcessing)
public AggregateDefinition optimisticLocking()
OptimisticLockingAggregationRepository
.public AggregateDefinition optimisticLockRetryPolicy(org.apache.camel.processor.aggregate.OptimisticLockRetryPolicy policy)
public AggregateDefinition executorService(ExecutorService executorService)
executorService
in interface ExecutorServiceAwareDefinition<AggregateDefinition>
executorService
- the executor servicepublic AggregateDefinition executorServiceRef(String executorServiceRef)
executorServiceRef
in interface ExecutorServiceAwareDefinition<AggregateDefinition>
executorServiceRef
- reference for a ExecutorService
to lookup in the
Registry
public AggregateDefinition timeoutCheckerExecutorService(ScheduledExecutorService executorService)
public AggregateDefinition timeoutCheckerExecutorService(Supplier<ScheduledExecutorService> executorService)
public AggregateDefinition timeoutCheckerExecutorServiceRef(String executorServiceRef)
public AggregateDefinition aggregateController(org.apache.camel.processor.aggregate.AggregateController aggregateController)
AggregateController
to allow external sources to control
this aggregator.public AggregateDefinition aggregateController(Supplier<org.apache.camel.processor.aggregate.AggregateController> aggregateController)
AggregateController
to allow external sources to control
this aggregator.public ExpressionDefinition getExpression()
public void setExpression(ExpressionDefinition expression)
public void setExpression(org.apache.camel.Expression expression)
protected void checkNoCompletedPredicate()
public List<ProcessorDefinition<?>> getOutputs()
getOutputs
in class OutputDefinition<AggregateDefinition>
public void setOutputs(List<ProcessorDefinition<?>> outputs)
setOutputs
in class OutputDefinition<AggregateDefinition>
Apache Camel