org.prevayler.implementation.clock
Class MachineClock
java.lang.Object
org.prevayler.implementation.clock.BrokenClock
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.
Method Summary |
Date |
time()
Tells the time. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MachineClock
public MachineClock()
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.