Prevayler™
The Free Software
Prevalence Layer

org.prevayler.implementation.clock
Class MachineClock

java.lang.Object
  extended byorg.prevayler.implementation.clock.BrokenClock
      extended byorg.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
 java.util.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 java.util.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.


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