public class ConnectionListener extends Object
Constructor and Description |
---|
ConnectionListener(MuleContext muleContext) |
Modifier and Type | Method and Description |
---|---|
void |
assertMinimumTimeBetweenNotifications(long expectedTimeBetweenNotifications) |
ConnectionListener |
reset() |
ConnectionListener |
setExpectedAction(int expectedAction) |
ConnectionListener |
setNumberOfExecutionsRequired(int numberOfExecutionsRequired) |
ConnectionListener |
setTimeoutInMillis(int timeout) |
void |
waitUntilNotificationsAreReceived() |
public ConnectionListener(MuleContext muleContext)
public void waitUntilNotificationsAreReceived()
public ConnectionListener setNumberOfExecutionsRequired(int numberOfExecutionsRequired)
numberOfExecutionsRequired
- number of times that the listener must be notified before releasing the latch.public ConnectionListener setTimeoutInMillis(int timeout)
public ConnectionListener setExpectedAction(int expectedAction)
public ConnectionListener reset()
public void assertMinimumTimeBetweenNotifications(long expectedTimeBetweenNotifications)
IllegalStateException
- if there were less than two notifications receivedCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.