Class UseOriginalAggregationStrategy
java.lang.Object
org.apache.camel.processor.aggregate.UseOriginalAggregationStrategy
- All Implemented Interfaces:
org.apache.camel.AggregationStrategy
@Metadata(label="bean",
description="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.",
annotations="interfaceName=org.apache.camel.AggregationStrategy")
@Configurer(metadataOnly=true)
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.Exchangeaggregate(org.apache.camel.Exchange oldExchange, org.apache.camel.Exchange newExchange) protected ExceptioncheckCaughtException(org.apache.camel.Exchange oldExchange, org.apache.camel.Exchange newExchange) protected ExceptioncheckException(org.apache.camel.Exchange oldExchange, org.apache.camel.Exchange newExchange) org.apache.camel.ExchangenewInstance(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, waitMethods 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:
aggregatein interfaceorg.apache.camel.AggregationStrategy
-
checkException
protected Exception checkException(org.apache.camel.Exchange oldExchange, org.apache.camel.Exchange newExchange) -
checkCaughtException
protected Exception checkCaughtException(org.apache.camel.Exchange oldExchange, org.apache.camel.Exchange newExchange) -
getOriginal
public org.apache.camel.Exchange getOriginal() -
toString
-