| Constructor and Description |
|---|
AutoResetEvent() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
await(long time,
TimeUnit unit)
Wait until thread is signaled or interrupted.
|
void |
reset()
Reset.
|
void |
signal()
Wake up one thread that is waiting.
|
public void signal()
public void reset()
public boolean await(long time,
TimeUnit unit)
throws InterruptedException
time - time to waitunit - time unit of timeInterruptedException - if the thread is interrupted