Interface Timeout
-
- All Known Implementing Classes:
FixedTimeout
,InfiniteTimeout
public interface Timeout
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
timeRemaining()
Returns the time remaining, to be passed towait
or throws TimeoutException if the timeout has expired.
-
-
-
Method Detail
-
timeRemaining
long timeRemaining() throws TimeoutException
Returns the time remaining, to be passed towait
or throws TimeoutException if the timeout has expired.- Throws:
TimeoutException
-
-