Class UseLatestAggregationStrategy
java.lang.Object
org.apache.camel.processor.aggregate.UseLatestAggregationStrategy
- All Implemented Interfaces:
org.apache.camel.AggregationStrategy
@Metadata(label="bean",
description="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.",
annotations="interfaceName=org.apache.camel.AggregationStrategy")
@Configurer(metadataOnly=true)
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.Exchangeaggregate(org.apache.camel.Exchange oldExchange, org.apache.camel.Exchange newExchange) protected voidpropagateException(org.apache.camel.Exchange oldExchange, org.apache.camel.Exchange newExchange) protected org.apache.camel.ExchangepropagateFailure(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, waitMethods 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:
aggregatein 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
-