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>
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 used in combination with Splitter to batch messages
  • Constructor Details

    • GroupedBodyAggregationStrategy

      public GroupedBodyAggregationStrategy()
  • Method Details

    • getValue

      public Object getValue(org.apache.camel.Exchange exchange)
      Description copied from class: AbstractListAggregationStrategy
      This 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 the List.

      Specified by:
      getValue in class AbstractListAggregationStrategy<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