public class ResequenceCorrelatorCallback extends CollectionCorrelatorCallback
aggregateEvents(org.mule.routing.EventGroup)
method only
resequences the events and returns an MuleEvent[] wrapped in a MuleMessage impl.
This means that this callback can ONLY be used with a Resequencer
Modifier and Type | Field and Description |
---|---|
protected Comparator<MuleEvent> |
eventComparator |
logger, muleContext
Constructor and Description |
---|
ResequenceCorrelatorCallback(Comparator<MuleEvent> eventComparator,
MuleContext muleContext,
String storePrefix) |
Modifier and Type | Method and Description |
---|---|
MuleEvent |
aggregateEvents(EventGroup events)
This method is invoked if the shouldAggregate method is called and returns
true.
|
createEventGroup, getMergedSession, shouldAggregateEvents
protected Comparator<MuleEvent> eventComparator
public ResequenceCorrelatorCallback(Comparator<MuleEvent> eventComparator, MuleContext muleContext, String storePrefix)
public MuleEvent aggregateEvents(EventGroup events) throws AggregationException
aggregateEvents
in interface EventCorrelatorCallback
aggregateEvents
in class CollectionCorrelatorCallback
events
- the event group for this requestAggregationException
- if the aggregation fails. in this scenario the
whole event group is removed and passed to the exception handler
for this componenetCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.