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
AggregationStrategy
aggregate
in interface AggregationStrategy
context
- an instance of AggregationContext
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
insteadMuleException
- if unexpected exception occurs or business error
condition is metprotected MuleEvent aggregateWithoutFailedRoutes(AggregationContext context) throws MuleException
MuleException
protected MuleEvent aggregateWithFailedRoutes(AggregationContext context) throws MuleException
MuleException
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.