public class FlowExecutionListener extends Object
| Constructor and Description |
|---|
FlowExecutionListener(org.mule.runtime.api.notification.NotificationListenerRegistry notificationListenerRegistry)
Constructor for releasing latch when any flow execution completes
|
FlowExecutionListener(String flowName,
org.mule.runtime.api.notification.NotificationListenerRegistry notificationListenerRegistry)
Constructor for releasing latch when flow with name flowName completes
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(Callback<org.mule.runtime.api.notification.EnrichedNotificationInfo> callback) |
FlowExecutionListener |
setNumberOfExecutionsRequired(int numberOfExecutionsRequired) |
FlowExecutionListener |
setTimeoutInMillis(int timeout) |
void |
waitUntilFlowIsComplete() |
public FlowExecutionListener(org.mule.runtime.api.notification.NotificationListenerRegistry notificationListenerRegistry)
public FlowExecutionListener(String flowName, org.mule.runtime.api.notification.NotificationListenerRegistry notificationListenerRegistry)
public void waitUntilFlowIsComplete()
public FlowExecutionListener setNumberOfExecutionsRequired(int numberOfExecutionsRequired)
numberOfExecutionsRequired - number of times that the listener must be notified before releasing the latch.public FlowExecutionListener setTimeoutInMillis(int timeout)
public void addListener(Callback<org.mule.runtime.api.notification.EnrichedNotificationInfo> callback)
callback - callback to be executed once a notification is receivedCopyright © 2003–2018 MuleSoft, Inc.. All rights reserved.