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. |
org.reactivestreams.Publisher<Void> |
onCompletion(CoreEvent event,
Map<String,Object> parameters)
Invoked on successful completion of flow processing.
|
org.reactivestreams.Publisher<Void> |
onFailure(MessagingException exception,
Map<String,Object> parameters)
Invoked when a failure occurs during the flow processing
|
void |
onTerminate(Either<MessagingException,CoreEvent> eventOrException) |
org.reactivestreams.Publisher<Void> onCompletion(CoreEvent event, Map<String,Object> parameters)
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 executionorg.reactivestreams.Publisher<Void> onFailure(MessagingException exception, Map<String,Object> parameters)
exception - the exception thrown during processingvoid onTerminate(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–2024 MuleSoft, Inc.. All rights reserved.