public class UseLatestAggregationStrategy extends Object implements org.apache.camel.AggregationStrategy
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 and Description |
|---|
UseLatestAggregationStrategy() |
| Modifier and Type | Method and 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() |
public org.apache.camel.Exchange aggregate(org.apache.camel.Exchange oldExchange,
org.apache.camel.Exchange newExchange)
aggregate in interface org.apache.camel.AggregationStrategyprotected 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)
Apache Camel