org.prevayler.implementation.clock
Class PausableClock
java.lang.Object
org.prevayler.implementation.clock.PausableClock
- All Implemented Interfaces:
- Clock
public class PausableClock
- extends Object
- implements Clock
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PausableClock
public PausableClock(Clock realClock)
time
public 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(Date time)
resume
public void resume()
realTime
public Date realTime()
Copyright © 2001-2013. All Rights Reserved.