org.apache.camel.processor.aggregate
Interface AggregationStrategy
- All Known Implementing Classes:
- UseLatestAggregationStrategy
public interface AggregationStrategy
A strategy for aggregating two exchanges together into a single exchange.
Possible implementations include performing some kind of combining or delta
processing, such as adding line items together into an invoice or just using
the newest exchange and removing old exchanges such as for state tracking or
market data prices; where old values are of little use.
- Version:
- $Revision: 303 $
aggregate
Exchange aggregate(Exchange oldExchange,
Exchange newExchange)
- Aggregates an old and new exchange together to create a single combined
exchange
- Parameters:
oldExchange
- the oldest exchangenewExchange
- the newest exchange
- Returns:
- a combined composite of the two exchanges
Copyright © 2009 IONA Open Source Community. All Rights Reserved.