org.prevayler.implementation.clock
Class PausableClock

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

public class PausableClock
extends Object
implements Clock


Constructor Summary
PausableClock(Clock realClock)
           
 
Method Summary
 void advanceTo(Date time)
           
 void pause()
           
 Date realTime()
           
 void resume()
           
 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 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.