public class CollectAllAggregationStrategy extends Object implements AggregationStrategy
MuleEvent under the
rules of DefaultRouterResultsHandler (you can change this behaviour by
overriding aggregateWithoutFailedRoutes(AggregationContext). Otherwise, a
CompositeRoutingException is thrown (override
to customize| Constructor and Description |
|---|
CollectAllAggregationStrategy() |
| Modifier and Type | Method and Description |
|---|---|
MuleEvent |
aggregate(AggregationContext context)
aggregates the events in the given context into a single one
|
protected MuleEvent |
aggregateWithFailedRoutes(AggregationContext context) |
protected MuleEvent |
aggregateWithoutFailedRoutes(AggregationContext context) |
public MuleEvent aggregate(AggregationContext context) throws MuleException
AggregationStrategyaggregate in interface AggregationStrategycontext - an instance of AggregationContextMuleEvent. 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 insteadMuleException - if unexpected exception occurs or business error
condition is metprotected MuleEvent aggregateWithoutFailedRoutes(AggregationContext context) throws MuleException
MuleExceptionprotected MuleEvent aggregateWithFailedRoutes(AggregationContext context) throws MuleException
MuleExceptionCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.