org.jmock.lib.concurrent.internal
Class FixedTimeout

java.lang.Object
  extended by org.jmock.lib.concurrent.internal.FixedTimeout
All Implemented Interfaces:
Timeout

public class FixedTimeout
extends Object
implements Timeout

A Timeout of fixed duration from the time the FixedTimeout object is instantiated.

Author:
nat

Constructor Summary
FixedTimeout(long duration)
           
 
Method Summary
 long timeRemaining()
          Returns the time remaining, to be passed to wait or throws TimeoutException if the timeout has expired.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedTimeout

public FixedTimeout(long duration)
Method Detail

timeRemaining

public long timeRemaining()
                   throws TimeoutException
Description copied from interface: Timeout
Returns the time remaining, to be passed to wait or throws TimeoutException if the timeout has expired.

Specified by:
timeRemaining in interface Timeout
Throws:
TimeoutException


Copyright © 2003-2012 jMock. All Rights Reserved.