org.terracotta.cache.impl
Class SystemTimeSource
java.lang.Object
org.terracotta.cache.impl.SystemTimeSource
- All Implemented Interfaces:
- TimeSource
public class SystemTimeSource
- extends Object
- implements TimeSource
A TimeSource that uses System.currentTimeMillis().
|
Method Summary |
int |
now()
Determine the current time, (like System.currentTimeMillis() but in seconds). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SystemTimeSource
public SystemTimeSource()
now
public int now()
- Description copied from interface:
TimeSource
- Determine the current time, (like System.currentTimeMillis() but in seconds).
- Specified by:
now in interface TimeSource
- Returns:
- Current time from system clock
Copyright © 2010 Terracotta, Inc.. All Rights Reserved.