Class UseOriginalAggregationStrategy
- java.lang.Object
-
- org.apache.camel.processor.aggregate.UseOriginalAggregationStrategy
-
- All Implemented Interfaces:
org.apache.camel.AggregationStrategy
public class UseOriginalAggregationStrategy extends Object implements org.apache.camel.AggregationStrategy
AnAggregationStrategy
which just uses the original exchange which can be needed when you want to preserve the original Exchange. For example when splitting anExchange
and then you may want to keep routing using the originalExchange
.- See Also:
Splitter
-
-
Constructor Summary
Constructors Constructor Description UseOriginalAggregationStrategy()
UseOriginalAggregationStrategy(boolean propagateException)
UseOriginalAggregationStrategy(org.apache.camel.Exchange original, boolean propagateException)
-
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 Exception
checkException(org.apache.camel.Exchange oldExchange, org.apache.camel.Exchange newExchange)
org.apache.camel.Exchange
getOriginal()
UseOriginalAggregationStrategy
newInstance(org.apache.camel.Exchange original)
Creates a new instance as a clone of this strategy with the new given original.String
toString()
-
-
-
Constructor Detail
-
UseOriginalAggregationStrategy
public UseOriginalAggregationStrategy()
-
UseOriginalAggregationStrategy
public UseOriginalAggregationStrategy(boolean propagateException)
-
UseOriginalAggregationStrategy
public UseOriginalAggregationStrategy(org.apache.camel.Exchange original, boolean propagateException)
-
-
Method Detail
-
newInstance
public UseOriginalAggregationStrategy newInstance(org.apache.camel.Exchange original)
Creates a new instance as a clone of this strategy with the new given original.
-
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
-
checkException
protected Exception checkException(org.apache.camel.Exchange oldExchange, org.apache.camel.Exchange newExchange)
-
getOriginal
public org.apache.camel.Exchange getOriginal()
-
-