org.apache.camel.processor.aggregate
Class UseOriginalAggregationStrategy
java.lang.Object
org.apache.camel.processor.aggregate.UseOriginalAggregationStrategy
- All Implemented Interfaces:
- AggregationStrategy
public class UseOriginalAggregationStrategy
- extends Object
- implements 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
.
- Version:
- See Also:
Splitter
UseOriginalAggregationStrategy
public UseOriginalAggregationStrategy()
UseOriginalAggregationStrategy
public UseOriginalAggregationStrategy(Exchange original,
boolean propagateException)
aggregate
public Exchange aggregate(Exchange oldExchange,
Exchange newExchange)
- Description copied from interface:
AggregationStrategy
- Aggregates an old and new exchange together to create a single combined exchange
- Specified by:
aggregate
in interface AggregationStrategy
- Parameters:
oldExchange
- the oldest exchange (is null on first aggregation as we only have the new exchange)newExchange
- the newest exchange (can be null if there was no data possible to acquire)
- Returns:
- a combined composite of the two exchanges
checkException
protected Exception checkException(Exchange oldExchange,
Exchange newExchange)
toString
public String toString()
- Overrides:
toString
in class Object
Apache Camel