| java.lang.Object com.tcclient.cache.Timestamp
Timestamp | public class Timestamp (Code) | | Tracks timestamp information on when the idle and TTL timers
for a CacheData value will expire. The TTL timer (timeToDie)
cannot be reset, but may not be active. The idle timer is
reset each time the item is used.
|
Constructor Summary | |
public | Timestamp(long createTime, long maxIdleMillis, long maxTTLMillis) |
Timestamp | public Timestamp(long createTime, long maxIdleMillis, long maxTTLMillis)(Code) | | |
getExpiredTimeMillis | public synchronized long getExpiredTimeMillis()(Code) | | Get the maximum time at which this timestamp can be valid,
regardless of usage.
|
getInvalidatedTimeMillis | public synchronized long getInvalidatedTimeMillis()(Code) | | Get the time at which this timestamp will become invalid
|
setExpiredTimeMillis | public synchronized void setExpiredTimeMillis(long millis)(Code) | | Modify time at which this timestamp will expire due to idle.
The max TTL limit is not affected.
|
|
|