public class MuleMessageProcessingManager extends Object implements MessageProcessingManager, MuleContextAware, Initialisable
MessageProcessingManager
.PHASE_NAME
Constructor and Description |
---|
MuleMessageProcessingManager() |
Modifier and Type | Method and Description |
---|---|
void |
initialise()
Method used to perform any initialisation work.
|
void |
processMessage(MessageProcessTemplate messageProcessTemplate,
MessageProcessContext messageProcessContext)
Process a message through a set of execution phases.
|
void |
setMuleContext(MuleContext context) |
public void processMessage(MessageProcessTemplate messageProcessTemplate, MessageProcessContext messageProcessContext)
MessageProcessingManager
ValidationPhase
which will validates the message content.
If message context is invalid then it will discard the message
- FlowProcessingPhase
which will route the message through it's flow configuration
- EndProcessPhase
which will be executed after all the phases have been executedprocessMessage
in interface MessageProcessingManager
messageProcessTemplate
- contains template methods that will be executed by each phase in specific parts of the phase so
the MessageSource
can apply custom logic during message processing.
The message will participate only on those phases were the template defines the required template methodsmessageProcessContext
- defines the context of execution of the messagepublic void setMuleContext(MuleContext context)
setMuleContext
in interface MuleContextAware
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
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdownRecoverableException
- if an error occurs that can be recovered fromCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.