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
An
AggregationStrategy
which just uses the original exchange which can be needed when you want to preserve
the original Exchange. For example when splitting an Exchange
and then you may want to keep routing using the
original Exchange
.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUseOriginalAggregationStrategy
(boolean propagateException) UseOriginalAggregationStrategy
(org.apache.camel.Exchange original, boolean propagateException) -
Method Summary
Modifier and TypeMethodDescriptionorg.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
newInstance
(org.apache.camel.Exchange original) Creates a new instance as a clone of this strategy with the new given original.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
-
UseOriginalAggregationStrategy
public UseOriginalAggregationStrategy() -
UseOriginalAggregationStrategy
public UseOriginalAggregationStrategy(boolean propagateException) -
UseOriginalAggregationStrategy
public UseOriginalAggregationStrategy(org.apache.camel.Exchange original, boolean propagateException)
-
-
Method Details
-
newInstance
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() -
toString
-