public class FlowExecutionListener extends Object
| Constructor and Description |
|---|
FlowExecutionListener(MuleContext muleContext)
Constructor for releasing latch when any flow execution completes
|
FlowExecutionListener(String flowName,
MuleContext muleContext)
Constructor for releasing latch when flow with name flowName completes
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(Callback<EnrichedNotificationInfo> callback) |
FlowExecutionListener |
setNumberOfExecutionsRequired(int numberOfExecutionsRequired) |
FlowExecutionListener |
setTimeoutInMillis(int timeout) |
void |
waitUntilFlowIsComplete() |
public FlowExecutionListener(MuleContext muleContext)
public FlowExecutionListener(String flowName, MuleContext muleContext)
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<EnrichedNotificationInfo> callback)
callback - callback to be executed once a notification is receivedCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.