org.terracotta.cache
Class SystemTimeSource

java.lang.Object
  extended by org.terracotta.cache.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:
The current time in seconds since the epoch


Copyright © 2015 Terracotta, Inc.. All Rights Reserved.