public class ContextWaiter
extends Object
| Constructor and Description |
|---|
ContextWaiter() |
| Modifier and Type | Method and Description |
|---|---|
void |
notifyError(Throwable e) |
void |
notifyStop() |
boolean |
waitForStopOrError(long timeout)
Return
true if it's stopped; or throw the reported error if notifyError has been called; or
false if the waiting time detectably elapsed before return from the method. |
public void notifyError(Throwable e)
public void notifyStop()
public boolean waitForStopOrError(long timeout)
true if it's stopped; or throw the reported error if notifyError has been called; or
false if the waiting time detectably elapsed before return from the method.