public class CollectAllAggregationStrategy extends Object implements AggregationStrategy
Event 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 |
|---|---|
Event |
aggregate(AggregationContext context)
aggregates the events in the given context into a single one
|
protected Event |
aggregateWithFailedRoutes(AggregationContext context) |
protected Event |
aggregateWithoutFailedRoutes(AggregationContext context) |
public Event aggregate(AggregationContext context) throws org.mule.runtime.api.exception.MuleException
AggregationStrategyaggregate in interface AggregationStrategycontext - an instance of AggregationContextEvent. 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 insteadorg.mule.runtime.api.exception.MuleException - if unexpected exception occurs or business error condition is metprotected Event aggregateWithoutFailedRoutes(AggregationContext context) throws org.mule.runtime.api.exception.MuleException
org.mule.runtime.api.exception.MuleExceptionprotected Event aggregateWithFailedRoutes(AggregationContext context) throws org.mule.runtime.api.exception.MuleException
org.mule.runtime.api.exception.MuleExceptionCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.