org.apache.camel.example.cafe.stuff
Class CafeAggregationStrategy

java.lang.Object
  extended by org.apache.camel.example.cafe.stuff.CafeAggregationStrategy
All Implemented Interfaces:
AggregationStrategy

public class CafeAggregationStrategy
extends Object
implements AggregationStrategy


Constructor Summary
CafeAggregationStrategy()
           
 
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

CafeAggregationStrategy

public CafeAggregationStrategy()
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 (can be null if there was no data possible to acquire)
Returns:
a combined composite of the two exchanges


Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.