org.terracotta.cache.impl
Class SystemTimeSource

java.lang.Object
  extended by org.terracotta.cache.impl.SystemTimeSource
All Implemented Interfaces:
TimeSource

public class SystemTimeSource
extends Object
implements TimeSource

A TimeSource that uses System.currentTimeMillis().


Constructor Summary
SystemTimeSource()
           
 
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
 

Constructor Detail

SystemTimeSource

public SystemTimeSource()
Method Detail

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.