com.zwares.base.cache.helper
Class QuickAccessClock

java.lang.Object
  |
  +--com.zwares.base.cache.helper.Clock
        |
        +--com.zwares.base.cache.helper.RealTimeClock
              |
              +--com.zwares.base.cache.helper.QuickAccessClock

public class QuickAccessClock
extends RealTimeClock


Nested Class Summary
 class QuickAccessClock.ClockRefresh
           
 
Field Summary
protected  long _currentTimeMillis
           
protected  long _refreshTimeMillis
           
protected static long DEFAULT_REFRESH
           
 
Constructor Summary
QuickAccessClock()
           
QuickAccessClock(long millis)
           
 
Method Summary
 java.util.Date currentDate()
           
 long currentRealTimeMillis()
           
 long currentTimeMillis()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_currentTimeMillis

protected long _currentTimeMillis

DEFAULT_REFRESH

protected static final long DEFAULT_REFRESH
See Also:
Constant Field Values

_refreshTimeMillis

protected long _refreshTimeMillis
Constructor Detail

QuickAccessClock

public QuickAccessClock(long millis)

QuickAccessClock

public QuickAccessClock()
Method Detail

currentDate

public java.util.Date currentDate()
Overrides:
currentDate in class RealTimeClock

currentTimeMillis

public long currentTimeMillis()
Overrides:
currentTimeMillis in class RealTimeClock

currentRealTimeMillis

public long currentRealTimeMillis()