org.jmock.lib.concurrent.internal
Class InfiniteTimeout

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

public class InfiniteTimeout
extends Object
implements Timeout

A Timeout that never times out.

Author:
nat

Constructor Summary
InfiniteTimeout()
           
 
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

InfiniteTimeout

public InfiniteTimeout()
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.