Constructor and Description |
---|
InfiniteTimeout() |
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