Class UseLatestAggregationStrategy
- java.lang.Object
-
- org.apache.camel.processor.aggregate.UseLatestAggregationStrategy
-
- All Implemented Interfaces:
org.apache.camel.AggregationStrategy
public class UseLatestAggregationStrategy extends Object implements org.apache.camel.AggregationStrategy
AnAggregationStrategy
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 Summary
Constructors Constructor Description UseLatestAggregationStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.camel.Exchange
aggregate(org.apache.camel.Exchange oldExchange, org.apache.camel.Exchange newExchange)
protected void
propagateException(org.apache.camel.Exchange oldExchange, org.apache.camel.Exchange newExchange)
protected org.apache.camel.Exchange
propagateFailure(org.apache.camel.Exchange oldExchange, org.apache.camel.Exchange newExchange)
String
toString()
-
-
-
Method Detail
-
aggregate
public org.apache.camel.Exchange aggregate(org.apache.camel.Exchange oldExchange, org.apache.camel.Exchange newExchange)
- Specified by:
aggregate
in interfaceorg.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)
-
-