public interface AsyncResponseFlowProcessingPhaseTemplate extends MessageProcessTemplate
MessageSource specific behavior during flow execution.| Modifier and Type | Method and Description |
|---|---|
Event |
getEvent() |
Event |
routeEvent(Event event)
Routes the
Event through the processors chain |
void |
sendFailureResponseToClient(MessagingException exception,
ResponseCompletionCallback responseCompletionCallback) |
void |
sendResponseToClient(Event event,
ResponseCompletionCallback responseCompletionCallback)
Template method to send a response after processing the message.
|
Event getEvent() throws org.mule.runtime.api.exception.MuleException
Event created from the original messageorg.mule.runtime.api.exception.MuleExceptionEvent routeEvent(Event event) throws org.mule.runtime.api.exception.MuleException
Event through the processors chainvoid sendResponseToClient(Event event, ResponseCompletionCallback responseCompletionCallback) throws org.mule.runtime.api.exception.MuleException
event - the event with the content of the response to be sent.responseCompletionCallback - callback to be used for notifying the result of the operationorg.mule.runtime.api.exception.MuleException - 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 exception, ResponseCompletionCallback responseCompletionCallback) throws org.mule.runtime.api.exception.MuleException
exception - exception thrown during the flow execution.responseCompletionCallback - callback to be used for notifying the result of the operationorg.mule.runtime.api.exception.MuleException - exception thrown when processing the message to send the response.Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.