Class GroupedBodyAggregationStrategy

  • All Implemented Interfaces:
    org.apache.camel.AggregationStrategy

    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 Detail

      • GroupedBodyAggregationStrategy

        public GroupedBodyAggregationStrategy()
    • Method Detail

      • 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