Class GroupedBodyAggregationStrategy
java.lang.Object
org.apache.camel.processor.aggregate.AbstractListAggregationStrategy<Object>
org.apache.camel.processor.aggregate.GroupedBodyAggregationStrategy
- All Implemented Interfaces:
org.apache.camel.AggregationStrategy
@Metadata(label="bean",
description="Aggregate body of input Message into a single combined Exchange holding all the aggregated bodies in a List of type Object as the message body. This aggregation strategy can be used in combination with Splitter to batch messages.",
annotations="interfaceName=org.apache.camel.AggregationStrategy")
@Configurer(metadataOnly=true)
public class GroupedBodyAggregationStrategy
extends AbstractListAggregationStrategy<Object>
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.camel.processor.aggregate.AbstractListAggregationStrategy
aggregate, isStoreAsBodyOnCompletion, onCompletionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.camel.AggregationStrategy
aggregate, canPreComplete, onCompletion, onOptimisticLockFailure, preComplete, timeout
-
Constructor Details
-
GroupedBodyAggregationStrategy
public GroupedBodyAggregationStrategy()
-
-
Method Details
-
getValue
Description copied from class:AbstractListAggregationStrategyThis method is implemented by the sub-class and is called to retrieve an instance of the value that will be aggregated and forwarded to the receiving end point. If null is returned, then the value is not added to theList.- Specified by:
getValuein classAbstractListAggregationStrategy<Object>- Parameters:
exchange- The exchange that is used to retrieve the value from- Returns:
- An instance of V that is the associated value of the passed exchange
-