public class NullSourceCompletionHandler extends Object implements SourceCompletionHandler
SourceCompletionHandler that does nothing.| Constructor and Description |
|---|
NullSourceCompletionHandler() |
| 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) |
public org.reactivestreams.Publisher<Void> onCompletion(CoreEvent event, Map<String,Object> parameters)
SourceCompletionHandler
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
onCompletion in interface SourceCompletionHandlerevent - the result of the flow executionpublic org.reactivestreams.Publisher<Void> onFailure(MessagingException exception, Map<String,Object> parameters)
SourceCompletionHandleronFailure in interface SourceCompletionHandlerexception - the exception thrown during processingpublic void onTerminate(Either<MessagingException,CoreEvent> eventOrException)
onTerminate in interface SourceCompletionHandlerpublic Map<String,Object> createResponseParameters(CoreEvent event)
SourceCompletionHandlerEvent.createResponseParameters in interface SourceCompletionHandlerevent - the Event with the result of the successful flow processing.public Map<String,Object> createFailureResponseParameters(CoreEvent event)
SourceCompletionHandlerEvent.createFailureResponseParameters in interface SourceCompletionHandlerevent - the Event with the result of the failed flow processing.Copyright © 2003–2024 MuleSoft, Inc.. All rights reserved.