Payload - the generic type for the handled message's payloadA - the generic type for the handled message's attributespublic interface MessageHandler<Payload,A extends org.mule.runtime.api.message.Attributes>
Message and notifies the result
of such process using a CompletionHandler.
Although this contract does not guarantee the processing being synchronous or asynchronous, it is meant to be used on an asynchronous way.
Implementations are to be reusable and thread-safe
| Modifier and Type | Method and Description |
|---|---|
void |
handle(org.mule.runtime.api.message.Message message)
Handles the
message without notifying the result. |
void |
handle(org.mule.runtime.api.message.Message message,
org.mule.runtime.api.execution.CompletionHandler<org.mule.runtime.api.message.MuleEvent,Exception,org.mule.runtime.api.message.MuleEvent> completionHandler)
Handles the
message and notifies the result using the given completionHandler |
void handle(org.mule.runtime.api.message.Message message,
org.mule.runtime.api.execution.CompletionHandler<org.mule.runtime.api.message.MuleEvent,Exception,org.mule.runtime.api.message.MuleEvent> completionHandler)
message and notifies the result using the given completionHandlermessage - the Message to be handledcompletionHandler - the CompletionHandler on which the result is to be notifiedvoid handle(org.mule.runtime.api.message.Message message)
message without notifying the result. Useful to implement fire and forget use casesmessage - the Message to be handledCopyright © 2016 MuleSoft, Inc.. All rights reserved.