Prevayler™
The Free Software
Prevalence Layer

org.prevayler.implementation.clock
Class PausableClock

java.lang.Object
  extended byorg.prevayler.implementation.clock.PausableClock
All Implemented Interfaces:
Clock

public class PausableClock
extends java.lang.Object
implements Clock


Constructor Summary
PausableClock(Clock realClock)
           
 
Method Summary
 void advanceTo(java.util.Date time)
           
 void pause()
           
 java.util.Date realTime()
           
 void resume()
           
 java.util.Date time()
          Tells the time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PausableClock

public PausableClock(Clock realClock)
Method Detail

time

public java.util.Date time()
Description copied from interface: Clock
Tells the time.

Specified by:
time in interface Clock
Returns:
A Date greater or equal to the one returned by the last call to this method. If the time is the same as the last call, the SAME Date object is returned rather than a new, equal one.

pause

public void pause()

advanceTo

public void advanceTo(java.util.Date time)

resume

public void resume()

realTime

public java.util.Date realTime()


'Prevayler' is a trademark of Klaus Wuestefeld.
Copyleft 2001-2004 Klaus Wuestefeld.