Interface Timeout
- All Known Implementing Classes:
FixedTimeout
,InfiniteTimeout
public interface Timeout
-
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the time remaining, to be passed towait
or throws TimeoutException if the timeout has expired.
-
Method Details
-
timeRemaining
Returns the time remaining, to be passed towait
or throws TimeoutException if the timeout has expired.- Throws:
TimeoutException
-