org.apache.camel.processor.aggregate
Class GroupedExchangeAggregationStrategy

java.lang.Object
  extended by org.apache.camel.processor.aggregate.GroupedExchangeAggregationStrategy
All Implemented Interfaces:
AggregationStrategy

public class GroupedExchangeAggregationStrategy
extends Object
implements AggregationStrategy

Aggregate all exchanges into a single combined GroupedExchange holding all the exchanges gathered.

Version:
$Revision: 772172 $

Constructor Summary
GroupedExchangeAggregationStrategy()
           
 
Method Summary
 Exchange aggregate(Exchange oldExchange, Exchange newExchange)
          Aggregates an old and new exchange together to create a single combined exchange
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupedExchangeAggregationStrategy

public GroupedExchangeAggregationStrategy()
Method Detail

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
Returns:
a combined composite of the two exchanges


Copyright © 2009 Apache Software Foundation. All Rights Reserved.