Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-5579

Add an abstract grouped by aggregator strategy that users can extend from.

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.11.0
    • Component/s: camel-core
    • Labels:
    • Patch Info:
      Patch Available
    • Estimated Complexity:
      Moderate

      Description

      The current GroupedExchangeAggregationStrategy will combine a list of exchange instances for a given correlation expression and propagate the exchange with that list. This is great as long as users are content with processing the list of exchanges.

      What about users that would like to extract data from the exchange and add that to the forwarded list? This is something that require users to create their own strategy.

      What I propose is that we provide base class for users to extend such that it manages the grouped list and have the user state and return the type of instances that will be added to the grouped list.

      I will attach a base class that users can extend and an example of a sub-classed version that will return a list of exchange instances like the default GroupedExchangeAggregateStrategy camel core class.

        Attachments

        1. AbstractGroupedByValueAggregationStrategy.java
          3 kB
          Claudio Corsi
        2. grouped-aggregate-strategy.tar.gz
          5 kB
          Claudio Corsi
        3. GroupedByExchangeAggregationStrategy.java
          1 kB
          Claudio Corsi

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              ccorsi Claudio Corsi
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: