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: 35332 $

Method Summary
 Exchange aggregate(Exchange oldExchange, Exchange newExchange)
          Aggregates an old and new exchange together to create a single combined exchange
 

Method Detail

aggregate

Exchange aggregate(Exchange oldExchange,
                   Exchange newExchange)
Aggregates an old and new exchange together to create a single combined exchange

Parameters:
oldExchange - the oldest exchange
newExchange - the newest exchange
Returns:
a combined composite of the two exchanges


Copyright © 2008 IONA Open Source Community. All Rights Reserved.