public class ResequenceMessagesCorrelatorCallback extends CollectionCorrelatorCallback
aggregateEvents(org.mule.runtime.core.routing.EventGroup) method only resequences the events and returns an
MuleEvent[] wrapped in a Message impl. This means that this callback can ONLY be used with a Resequencer| Modifier and Type | Field and Description |
|---|---|
protected Comparator |
eventComparator |
protected MuleContext |
muleContext |
logger| Constructor and Description |
|---|
ResequenceMessagesCorrelatorCallback(Comparator eventComparator,
MuleContext muleContext,
String storePrefix) |
| Modifier and Type | Method and Description |
|---|---|
Event |
aggregateEvents(EventGroup events)
This method is invoked if the shouldAggregate method is called and returns true.
|
createEventGroup, getMergedSession, shouldAggregateEventsprotected Comparator eventComparator
protected MuleContext muleContext
public ResequenceMessagesCorrelatorCallback(Comparator eventComparator, MuleContext muleContext, String storePrefix)
public Event aggregateEvents(EventGroup events) throws AggregationException
aggregateEvents in interface EventCorrelatorCallbackaggregateEvents in class CollectionCorrelatorCallbackevents - 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–2017 MuleSoft, Inc.. All rights reserved.