Payload - the generic type for the generated message's payloadA - the generic type for the generated message's attributespublic interface SourceContext<Payload,A extends org.mule.runtime.api.message.Attributes>
Source| Modifier and Type | Method and Description |
|---|---|
Optional<ConfigurationInstance> |
getConfigurationInstance() |
org.mule.runtime.api.execution.ExceptionCallback<Void,Throwable> |
getExceptionCallback()
Provides the
ExceptionCallback on which exceptions are to be notified. |
MessageHandler<Payload,A> |
getMessageHandler() |
MessageHandler<Payload,A> getMessageHandler()
MessageHandler to be used for processing the generated messagesorg.mule.runtime.api.execution.ExceptionCallback<Void,Throwable> getExceptionCallback()
ExceptionCallback on which exceptions are to be notified.
Notice that this callback is for notifying the runtime about problems which actually
belong to the source, such as loosing connectivity. This is not to be confused
with the CompletionHandler.onFailure(Throwable) method which can be invoked
through the getMessageHandler() method, which is used to handle message
errors which are actually related to the processing of it rather than the source
ExceptionCallbackOptional<ConfigurationInstance> getConfigurationInstance()
ConfigurationInstance to which the Source is associatedCopyright © 2016 MuleSoft, Inc.. All rights reserved.