| Modifier and Type | Field and Description |
|---|---|
private long |
duration |
private long |
start |
| Constructor and Description |
|---|
FixedTimeout(long duration) |
| Modifier and Type | Method and Description |
|---|---|
long |
timeRemaining()
Returns the time remaining, to be passed to
wait
or throws TimeoutException if the timeout has expired. |
public long timeRemaining()
throws java.util.concurrent.TimeoutException
Timeoutwait
or throws TimeoutException if the timeout has expired.timeRemaining in interface Timeoutjava.util.concurrent.TimeoutException