private static class Cache.AgingCacheValue<K,V> extends Cache.CacheValue<K,V>
Modifier and Type | Field and Description |
---|---|
private long |
birthTimeMillis |
Constructor and Description |
---|
AgingCacheValue(long sizeBytes,
V value,
Cache.CacheKey<K> key) |
Modifier and Type | Method and Description |
---|---|
long |
ageMillis() |
boolean |
expired(long ttl) |
getKey, sizeBytes, toString, value
public AgingCacheValue(long sizeBytes, V value, Cache.CacheKey<K> key)
public long ageMillis()
public boolean expired(long ttl)
expired
in class Cache.CacheValue<K,V>
Copyright © 2017. All rights reserved.