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
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.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) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.camel.AggregationStrategy
aggregate, canPreComplete, onCompletion, onCompletion, onOptimisticLockFailure, preComplete, timeout
-
Constructor Details
-
UseLatestAggregationStrategy
public UseLatestAggregationStrategy()
-
-
Method Details
-
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) -
toString
-