Class UseLatestAggregationStrategy

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

    public class UseLatestAggregationStrategy
    extends Object
    implements org.apache.camel.AggregationStrategy
    An AggregationStrategy which just uses the latest exchange which is useful for status messages where old status messages have no real value. Another example is things like market data prices, where old stock prices are not that relevant, only the current price is.
    • Constructor Detail

      • UseLatestAggregationStrategy

        public UseLatestAggregationStrategy()
    • Method Detail

      • aggregate

        public org.apache.camel.Exchange aggregate​(org.apache.camel.Exchange oldExchange,
                                                   org.apache.camel.Exchange newExchange)
        Specified by:
        aggregate in interface org.apache.camel.AggregationStrategy
      • propagateException

        protected void propagateException​(org.apache.camel.Exchange oldExchange,
                                          org.apache.camel.Exchange newExchange)
      • propagateFailure

        protected org.apache.camel.Exchange propagateFailure​(org.apache.camel.Exchange oldExchange,
                                                             org.apache.camel.Exchange newExchange)