@Metadata(label="eip,routing") public class AggregateDefinition extends ProcessorDefinition<AggregateDefinition> implements OutputNode, ExecutorServiceAwareDefinition<AggregateDefinition>
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
Will by default use
MemoryAggregationRepository |
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 |
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 |
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 |
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() |
Integer |
getCloseCorrelationKeyOnCompletion() |
Boolean |
getCompleteAllOnStop() |
Boolean |
getCompletionFromBatchConsumer() |
Long |
getCompletionInterval() |
Boolean |
getCompletionOnNewCorrelationGroup() |
ExpressionSubElementDefinition |
getCompletionPredicate() |
Integer |
getCompletionSize() |
ExpressionSubElementDefinition |
getCompletionSizeExpression() |
Long |
getCompletionTimeout() |
Long |
getCompletionTimeoutCheckerInterval() |
ExpressionSubElementDefinition |
getCompletionTimeoutExpression() |
ExpressionSubElementDefinition |
getCorrelationExpression() |
Boolean |
getDiscardOnAggregationFailure() |
Boolean |
getDiscardOnCompletionTimeout() |
Boolean |
getEagerCheckCompletion() |
ExecutorService |
getExecutorService() |
String |
getExecutorServiceRef() |
ExpressionDefinition |
getExpression() |
Boolean |
getForceCompletionOnStop() |
Boolean |
getIgnoreInvalidCorrelationKeys() |
String |
getLabel()
Returns a label to describe this node such as the expression if some kind
of expression node
|
Boolean |
getOptimisticLocking() |
org.apache.camel.processor.aggregate.OptimisticLockRetryPolicy |
getOptimisticLockRetryPolicy() |
OptimisticLockRetryPolicyDefinition |
getOptimisticLockRetryPolicyDefinition() |
List<ProcessorDefinition<?>> |
getOutputs() |
Boolean |
getParallelProcessing() |
String |
getShortName() |
Boolean |
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(Integer closeCorrelationKeyOnCompletion) |
void |
setCompleteAllOnStop(Boolean completeAllOnStop) |
void |
setCompletionFromBatchConsumer(Boolean completionFromBatchConsumer) |
void |
setCompletionInterval(Long completionInterval) |
void |
setCompletionOnNewCorrelationGroup(Boolean completionOnNewCorrelationGroup) |
void |
setCompletionPredicate(ExpressionSubElementDefinition completionPredicate) |
void |
setCompletionSize(Integer completionSize) |
void |
setCompletionSizeExpression(ExpressionSubElementDefinition completionSizeExpression)
Number of messages aggregated before the aggregation is complete.
|
void |
setCompletionTimeout(Long completionTimeout) |
void |
setCompletionTimeoutCheckerInterval(Long 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(Boolean discardOnAggregationFailure) |
void |
setDiscardOnCompletionTimeout(Boolean discardOnCompletionTimeout) |
void |
setEagerCheckCompletion(Boolean eagerCheckCompletion) |
void |
setExecutorService(ExecutorService executorService) |
void |
setExecutorServiceRef(String executorServiceRef) |
void |
setExpression(org.apache.camel.Expression expression) |
void |
setExpression(ExpressionDefinition expression) |
void |
setForceCompletionOnStop(Boolean forceCompletionOnStop) |
void |
setIgnoreInvalidCorrelationKeys(Boolean ignoreInvalidCorrelationKeys) |
void |
setOptimisticLocking(boolean optimisticLocking) |
void |
setOptimisticLockRetryPolicy(org.apache.camel.processor.aggregate.OptimisticLockRetryPolicy optimisticLockRetryPolicy) |
void |
setOptimisticLockRetryPolicyDefinition(OptimisticLockRetryPolicyDefinition optimisticLockRetryPolicyDefinition) |
void |
setOutputs(List<ProcessorDefinition<?>> outputs) |
void |
setParallelProcessing(boolean parallelProcessing) |
void |
setStrategyMethodAllowNull(Boolean 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, attribute, bean, bean, bean, bean, bean, bean, bean, bean, bean, choice, claimCheck, claimCheck, claimCheck, claimCheck, clearOutput, convertBodyTo, convertBodyTo, delay, delay, delay, doTry, dynamicRouter, dynamicRouter, end, endChoice, endDoTry, endHystrix, endParent, endRest, enrich, enrich, enrich, enrich, enrich, enrich, enrich, enrich, enrich, enrichWith, enrichWith, enrichWith, enrichWith, enrichWith, enrichWith, filter, filter, filter, filter, getIndex, getInterceptStrategies, getOtherAttributes, getParent, hystrix, id, idempotentConsumer, idempotentConsumer, idempotentConsumer, inheritErrorHandler, inOnly, inOnly, inOnly, inOnly, inOnly, inOut, inOut, inOut, inOut, inOut, isAbstract, isInheritErrorHandler, isTopLevelOnly, isWrappingEntireOutput, 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, placeholder, 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, 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, script, script, serviceCall, serviceCall, serviceCall, setBody, setBody, setBody, setBody, setExchangePattern, setHeader, setHeader, setHeader, setInheritErrorHandler, setOtherAttributes, setParent, setProperty, setProperty, sort, sort, sort, 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, 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, setId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
executorService
getReadPropertyPlaceholderOptions, getWritePropertyPlaceholderOptions
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)
protected String description()
public String getShortName()
getShortName
in interface org.apache.camel.NamedNode
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 Boolean getStrategyMethodAllowNull()
public String getStrategyMethodName()
public void setStrategyMethodName(String strategyMethodName)
public void setStrategyMethodAllowNull(Boolean strategyMethodAllowNull)
public void setCorrelationExpression(ExpressionSubElementDefinition correlationExpression)
public ExpressionSubElementDefinition getCorrelationExpression()
public Integer getCompletionSize()
public void setCompletionSize(Integer 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 Long getCompletionInterval()
public void setCompletionInterval(Long completionInterval)
public Long getCompletionTimeout()
public void setCompletionTimeout(Long completionTimeout)
public Long getCompletionTimeoutCheckerInterval()
public void setCompletionTimeoutCheckerInterval(Long 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 Boolean getCompletionFromBatchConsumer()
public void setCompletionFromBatchConsumer(Boolean completionFromBatchConsumer)
public Boolean getCompletionOnNewCorrelationGroup()
public void setCompletionOnNewCorrelationGroup(Boolean completionOnNewCorrelationGroup)
public ExecutorService getExecutorService()
getExecutorService
in interface org.apache.camel.ExecutorServiceAware
public void setExecutorService(ExecutorService executorService)
setExecutorService
in interface org.apache.camel.ExecutorServiceAware
public Boolean getOptimisticLocking()
public void setOptimisticLocking(boolean optimisticLocking)
public Boolean getParallelProcessing()
public void setParallelProcessing(boolean parallelProcessing)
public String getExecutorServiceRef()
getExecutorServiceRef
in interface org.apache.camel.ExecutorServiceAware
public void setExecutorServiceRef(String executorServiceRef)
setExecutorServiceRef
in interface org.apache.camel.ExecutorServiceAware
public Boolean getEagerCheckCompletion()
public void setEagerCheckCompletion(Boolean eagerCheckCompletion)
public Boolean getIgnoreInvalidCorrelationKeys()
public void setIgnoreInvalidCorrelationKeys(Boolean ignoreInvalidCorrelationKeys)
public Integer getCloseCorrelationKeyOnCompletion()
public void setCloseCorrelationKeyOnCompletion(Integer 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 Boolean getDiscardOnCompletionTimeout()
public void setDiscardOnCompletionTimeout(Boolean discardOnCompletionTimeout)
public Boolean getDiscardOnAggregationFailure()
public void setDiscardOnAggregationFailure(Boolean discardOnAggregationFailure)
public void setTimeoutCheckerExecutorService(ScheduledExecutorService timeoutCheckerExecutorService)
public ScheduledExecutorService getTimeoutCheckerExecutorService()
public void setTimeoutCheckerExecutorServiceRef(String timeoutCheckerExecutorServiceRef)
public String getTimeoutCheckerExecutorServiceRef()
public Boolean getForceCompletionOnStop()
public void setForceCompletionOnStop(Boolean forceCompletionOnStop)
public Boolean getCompleteAllOnStop()
public void setCompleteAllOnStop(Boolean 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(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 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 ProcessorDefinition<AggregateDefinition>
public void setOutputs(List<ProcessorDefinition<?>> outputs)
Apache Camel