public class Resequencer extends AbstractAggregator
Resequencer is used to resequence events according to their dispatch sequence in the correlation group. When the
message splitter router splits an event it assigns a correlation sequence to the individual message parts so that another
router such as the Resequencer can receive the parts and reorder or merge them.
EIP Reference: http:// www.eaipatterns.com/Resequencer.html
ReactiveProcessor.ProcessingType| Modifier and Type | Field and Description |
|---|---|
protected Comparator |
eventComparator |
eventCorrelator, EVENTS_STORE_REGISTRY_KEY_PREFIX, eventsObjectStoreKey, MAX_PROCESSED_GROUPS, muleContext, persistentStores, storePrefixflowConstruct, logger, next| Constructor and Description |
|---|
Resequencer() |
| Modifier and Type | Method and Description |
|---|---|
protected EventCorrelatorCallback |
getCorrelatorCallback(MuleContext muleContext) |
Comparator |
getEventComparator() |
void |
initialise() |
Event |
process(Event event)
Invokes the MessageProcessor.
|
void |
setEventComparator(Comparator eventComparator) |
apply, dispose, expireAggregation, getStorePrefix, getTimeout, initEventGroupsObjectStore, initProcessedGroupsObjectStore, isFailOnTimeout, isPersistentStores, setEventGroupsObjectStore, setFailOnTimeout, setMuleContext, setPersistentStores, setProcessedGroupsObjectStore, setStorePrefix, setTimeout, start, stopapplyNext, getListener, getMuleContext, isEventValid, processNext, setFlowConstruct, setListener, toStringgetAnnotation, getAnnotations, getLocation, setAnnotationsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsetFlowConstructsetListenergetProcessingTypeprotected Comparator eventComparator
public void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableinitialise in class AbstractAggregatororg.mule.runtime.api.lifecycle.InitialisationExceptionpublic Comparator getEventComparator()
public void setEventComparator(Comparator eventComparator)
protected EventCorrelatorCallback getCorrelatorCallback(MuleContext muleContext)
getCorrelatorCallback in class AbstractAggregatorpublic Event process(Event event) throws org.mule.runtime.api.exception.MuleException
Processorprocess in interface Processorprocess in class AbstractAggregatorevent - MuleEvent to be processedorg.mule.runtime.api.exception.MuleExceptionCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.