| Constructor and Description |
|---|
WaitOnChange() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasStopped()
Return if the Handle has stopped.
|
boolean |
waitForChange()
Wait indefinitely for any change in the Handle's state and accept the change when received.
|
boolean |
waitForChange(TimeOut howLong)
Wait for any change in the Handle's state and accept the change when received.
|
boolean |
waitInterruptable(TimeOut howLong)
Wait for any change in the Handle's state and accept the change when received.
|
public final boolean hasStopped()
public boolean waitForChange(TimeOut howLong)
howLong - the length of time to wait.public boolean waitInterruptable(TimeOut howLong) throws InterruptedException
howLong - the length of time to wait.InterruptedException - if the Thread was interrupted.public boolean waitForChange()
howLong - the length of time to wait.InterruptedException - if the Thread was interrupted.