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
Timeout
wait
or throws TimeoutException if the timeout has expired.timeRemaining
in interface Timeout
java.util.concurrent.TimeoutException