public class DefaultFlowListener extends Object implements org.mule.runtime.extension.api.runtime.operation.FlowListener
FlowListener.
It uses an CoreEvent's response Publisher to subscribe to the event termination and execute the necessary logic.
| Constructor and Description |
|---|
DefaultFlowListener(org.mule.runtime.api.meta.model.ExtensionModel extensionModel,
org.mule.runtime.api.meta.model.operation.OperationModel operationModel,
CoreEvent event)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
onComplete(Runnable handler) |
void |
onError(Consumer<Exception> handler) |
void |
onSuccess(Consumer<org.mule.runtime.api.message.Message> handler) |
public DefaultFlowListener(org.mule.runtime.api.meta.model.ExtensionModel extensionModel,
org.mule.runtime.api.meta.model.operation.OperationModel operationModel,
CoreEvent event)
event - the event on which the operation is being executed.public void onSuccess(Consumer<org.mule.runtime.api.message.Message> handler)
onSuccess in interface org.mule.runtime.extension.api.runtime.operation.FlowListenerpublic void onError(Consumer<Exception> handler)
onError in interface org.mule.runtime.extension.api.runtime.operation.FlowListenerpublic void onComplete(Runnable handler)
onComplete in interface org.mule.runtime.extension.api.runtime.operation.FlowListenerCopyright © 2003–2024 MuleSoft, Inc.. All rights reserved.