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, storePrefix
logger, next, notificationHandler
PHASE_NAME
PHASE_NAME
PHASE_NAME
PHASE_NAME
PROPERTY_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, stop
addMessageProcessorPathElements, getListener, getMuleContext, isEventValid, processNext, setListener, toString
getAnnotation, getAnnotations, setAnnotations
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
setListener
protected Comparator eventComparator
public void initialise() throws InitialisationException
Initialisable
InitialisationException
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 Initialisable
initialise
in class AbstractAggregator
InitialisationException
- 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 AbstractAggregator
public MuleEvent process(MuleEvent event) throws MuleException
MessageProcessor
process
in interface MessageProcessor
process
in class AbstractAggregator
event
- MuleEvent to be processedMuleException
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.