org.prevayler.implementation.clock
Class MachineClock

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

public class MachineClock
extends BrokenClock

A Clock that uses the local machine clock (System.currentTimeMillis()) as its time source.


Field Summary
 
Fields inherited from class org.prevayler.implementation.clock.BrokenClock
_millis
 
Constructor Summary
MachineClock()
           
 
Method Summary
 Date time()
          Tells the time.
 
Methods inherited from class org.prevayler.implementation.clock.BrokenClock
advanceTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MachineClock

public MachineClock()
Method Detail

time

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

Specified by:
time in interface Clock
Overrides:
time in class BrokenClock
Returns:
The local machine time.


Copyright © 2001-2013. All Rights Reserved.