public class Event extends Object
Constructor and Description |
---|
Event() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
doWait()
Wait indefinitely for set() to be called.
|
boolean |
doWait(int timeout)
Wait the specified time period for set() to be called.
|
void |
set() |
public boolean doWait() throws InterruptedException
InterruptedException
- If interrupted.public boolean doWait(int timeout) throws InterruptedException
timeout
- Timeout value in milliseconds.InterruptedException
- If interrupted.public void set()
public void clear()
Copyright © 2016–2017 mattjlewis. All rights reserved.