Package org.apache.camel.processor.aggregate
package org.apache.camel.processor.aggregate
Helper classes for the Aggregator pattern.
-
ClassDescriptionAggregate all exchanges into a
List
of values defined by theAbstractListAggregationStrategy.getValue(Exchange)
call.A controller which allows controlling aAggregateProcessor
from an external source, such as Java API or JMX.An implementation of the Aggregator pattern where a batch of messages are processed (up to a maximum amount or until some timeout is reached) and messages for the same correlation key are combined together using some kind ofAggregationStrategy
(by default the latest message is used) to compress many message exchanges into a smaller number of exchanges.Various statistics of the aggregatorAnAggregationStrategy
that adapts to a POJO.Class information about the POJO method to call when using theAggregationStrategyBeanAdapter
.AnAggregationStrategy
that adapts to aBiFunction
.Method information about the POJO method to call when using theAggregationStrategyBeanAdapter
.Parameter information to be used for method invocation.The correlation key has been closed and the Exchange cannot be aggregated.A defaultAggregateController
that offers Java and JMX API.Aggregate all exchanges into a single combined Exchange holding all the aggregated exchanges in aList
ofExchange
as the message body.Aggregate allMessage
into a single combined Exchange holding all the aggregated messages in aList
ofMessage
as the message body.A memory basedAggregationRepository
which storesExchange
s in memory only.Class to control how failed optimistic locks are tried.AnAggregationStrategy
which are used when the option shareUnitOfWork is enabled on EIPs such as multicast, splitter or recipientList.Aggregate result of pick expression into a single combined Exchange holding all the aggregated bodies in aString
as the message body.AnAggregationStrategy
which just uses the latest exchange which is useful for status messages where old status messages have no real value.AnAggregationStrategy
which just uses the original exchange which can be needed when you want to preserve the original Exchange.