public class PhaseExecutionEngine extends Object
MessageProcessPhase using the message
content and message processing context provided by MessageProcessTemplate and
MessageProcessContext.
This class will handle any message processing failure by calling the
SystemExceptionHandler defined by the application.
Each MessageProcessPhase can be executed with a different threading mechanism.
MessageProcessPhase implementation must guarantee that upon phase completion the method
PhaseResultNotifier.phaseSuccessfully() is executed, if there was a failure processing the message then the method
PhaseResultNotifier.phaseFailure(Exception) must be executed and if the phase consumed the message the method
PhaseResultNotifier.phaseConsumedMessage() must be executed.
| Modifier and Type | Class and Description |
|---|---|
class |
PhaseExecutionEngine.InternalPhaseExecutionEngine |
| Constructor and Description |
|---|
PhaseExecutionEngine(List<MessageProcessPhase> messageProcessPhaseList,
SystemExceptionHandler exceptionHandler,
EndProcessPhase endProcessPhase) |
| Modifier and Type | Method and Description |
|---|---|
void |
process(MessageProcessTemplate messageProcessTemplate,
MessageProcessContext messageProcessContext) |
public PhaseExecutionEngine(List<MessageProcessPhase> messageProcessPhaseList, SystemExceptionHandler exceptionHandler, EndProcessPhase endProcessPhase)
public void process(MessageProcessTemplate messageProcessTemplate, MessageProcessContext messageProcessContext)
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.