Class InfiniteTimeout
java.lang.Object
org.jmock.lib.concurrent.internal.InfiniteTimeout
- All Implemented Interfaces:
Timeout
A Timeout that never times out.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the time remaining, to be passed towait
or throws TimeoutException if the timeout has expired.
-
Constructor Details
-
InfiniteTimeout
public InfiniteTimeout()
-
-
Method Details
-
timeRemaining
Description copied from interface:Timeout
Returns the time remaining, to be passed towait
or throws TimeoutException if the timeout has expired.- Specified by:
timeRemaining
in interfaceTimeout
- Throws:
TimeoutException
-