public interface SourceCompletionHandler
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
createFailureResponseParameters(CoreEvent event)
Resolves the set of parameters of the failure response function of the source against the supplied
Event. |
Map<String,Object> |
createResponseParameters(CoreEvent event)
Resolves the set of parameters of the response function of the source against the supplied
Event. |
void |
onCompletion(CoreEvent event,
Map<String,Object> parameters,
org.mule.runtime.api.component.execution.CompletableCallback<Void> callback)
Invoked on successful completion of flow processing.
|
void |
onFailure(MessagingException exception,
Map<String,Object> parameters,
org.mule.runtime.api.component.execution.CompletableCallback<Void> callback)
Invoked when a failure occurs during the flow processing
|
void |
onTerminate(org.mule.runtime.api.functional.Either<MessagingException,CoreEvent> eventOrException) |
void onCompletion(CoreEvent event, Map<String,Object> parameters, org.mule.runtime.api.component.execution.CompletableCallback<Void> callback)
Exceptions found while processing are to be notified through the exceptionCallback, which might (depending on
HandledCompletionExceptionResult) produce a new value as the result of handling such error
event - the result of the flow executioncallback - the callback to be completed as a resultvoid onFailure(MessagingException exception, Map<String,Object> parameters, org.mule.runtime.api.component.execution.CompletableCallback<Void> callback)
exception - the exception thrown during processingcallback - the callback to be completed as a resultvoid onTerminate(org.mule.runtime.api.functional.Either<MessagingException,CoreEvent> eventOrException) throws Exception
ExceptionMap<String,Object> createResponseParameters(CoreEvent event) throws MessagingException
Event.event - the Event with the result of the successful flow processing.MessagingExceptionMap<String,Object> createFailureResponseParameters(CoreEvent event) throws MessagingException
Event.event - the Event with the result of the failed flow processing.MessagingExceptionCopyright © 2003–2022 MuleSoft, Inc.. All rights reserved.