public interface AsyncResponseFlowProcessingPhaseTemplate extends MessageProcessTemplate
MessageSource specific behavior during
flow execution.| Modifier and Type | Method and Description |
|---|---|
void |
afterFailureProcessingFlow(Exception exception)
Call when the processing of the message through the flow fails in an exception strategy
|
MuleEvent |
getMuleEvent() |
MuleEvent |
routeEvent(MuleEvent muleEvent)
Routes the
MuleEvent through the processors chain |
void |
sendFailureResponseToClient(MessagingException messagingException,
ResponseCompletionCallback responseCompletionCallback) |
void |
sendResponseToClient(MuleEvent muleEvent,
ResponseCompletionCallback responseCompletionCallback)
Template method to send a response after processing the message.
|
MuleEvent getMuleEvent() throws MuleException
MuleEvent created from the original messageMuleExceptionMuleEvent routeEvent(MuleEvent muleEvent) throws MuleException
MuleEvent through the processors chainmuleEvent - MuleEvent created from the raw message of this contextMuleEventMuleExceptionvoid afterFailureProcessingFlow(Exception exception)
exception - void sendResponseToClient(MuleEvent muleEvent, ResponseCompletionCallback responseCompletionCallback) throws MuleException
muleEvent - the event with the content of the response to be sent.responseCompletionCallback - callback to be used for notifying the result of the operationMuleException - exception thrown when processing the message to send the response. If there's a failure when writing the response
using the underlying transport or connector then the exception to throw must be a ResponseDispatchException.void sendFailureResponseToClient(MessagingException messagingException, ResponseCompletionCallback responseCompletionCallback) throws MuleException
messagingException - exception thrown during the flow execution.responseCompletionCallback - callback to be used for notifying the result of the operationMuleException - exception thrown when processing the message to send the response.Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.