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
| Modifier and Type | Field and Description |
|---|---|
protected Comparator |
eventComparator |
eventCorrelator, flowConstruct, messageInfoMapping, muleContext, persistentStores, storePrefixlogger, next, notificationHandlerPHASE_NAMEPHASE_NAMEPHASE_NAMEPHASE_NAMEPROPERTY_NAME| Constructor and Description |
|---|
Resequencer() |
| Modifier and Type | Method and Description |
|---|---|
protected EventCorrelatorCallback |
getCorrelatorCallback(MuleContext muleContext) |
Comparator |
getEventComparator() |
void |
initialise()
Method used to perform any initialisation work.
|
MuleEvent |
process(MuleEvent event)
Invokes the MessageProcessor.
|
void |
setEventComparator(Comparator eventComparator) |
dispose, expireAggregation, getStorePrefix, getTimeout, isFailOnTimeout, isPersistentStores, setFailOnTimeout, setFlowConstruct, setMessageInfoMapping, setMuleContext, setPersistentStores, setStorePrefix, setTimeout, start, stopaddMessageProcessorPathElements, getListener, getMuleContext, isEventValid, processNext, setListener, toStringgetAnnotation, getAnnotations, setAnnotationsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsetListenerprotected Comparator eventComparator
public void initialise()
throws InitialisationException
InitialisableInitialisationException should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.initialise in interface Initialisableinitialise in class AbstractAggregatorInitialisationException - if a fatal error occurs causing the Mule instance to shutdownRecoverableException - if an error occurs that can be recovered frompublic Comparator getEventComparator()
public void setEventComparator(Comparator eventComparator)
protected EventCorrelatorCallback getCorrelatorCallback(MuleContext muleContext)
getCorrelatorCallback in class AbstractAggregatorpublic MuleEvent process(MuleEvent event) throws MuleException
MessageProcessorprocess in interface MessageProcessorprocess in class AbstractAggregatorevent - MuleEvent to be processedMuleExceptionCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.