Class FixedTimeout
- java.lang.Object
-
- org.jmock.lib.concurrent.internal.FixedTimeout
-
-
Constructor Summary
Constructors Constructor Description FixedTimeout(long duration)
-
Method Summary
All Methods Instance Methods Concrete 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
public long timeRemaining() throws java.util.concurrent.TimeoutException
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:
java.util.concurrent.TimeoutException
-
-