org.mule.routing
Interface AggregationStrategy

All Known Implementing Classes:
AggregationStrategyDefinitionParser.AggregationStrategyDelegate, CollectAllAggregationStrategy

public interface AggregationStrategy

Strategy pattern for aggregating a list of MuleEvent passed through a AggregationContext into a single one

Since:
3.5.0

Method Summary
 MuleEvent aggregate(AggregationContext context)
          aggregates the events in the given context into a single one
 

Method Detail

aggregate

MuleEvent aggregate(AggregationContext context)
                    throws MuleException
aggregates the events in the given context into a single one

Parameters:
context - an instance of AggregationContext
Returns:
a resulting MuleEvent. It can be a new event, an enriched version of AggregationContext.getOriginalEvent() or whatever makes sense in your use case. It cannot be null, return VoidMuleEvent instead
Throws:
MuleException - if unexpected exception occurs or business error condition is met


Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.