public interface CacheEntry<K,T>
After retrieved the entry instance does not change the values, even if the value for its key is updated in the cache.
Design remark: The cache is generally also aware of the time the object will be refreshed next or when it expired. This is not exposed to applications by intention.
Modifier and Type | Method and Description |
---|---|
Throwable |
getException() |
K |
getKey() |
long |
getLastModification()
Time the entry was last updated either by a fetch via the CacheSource
or by a put.
|
T |
getValue() |
Throwable getException()
long getLastModification()
cache2k API documentation. Copyright © 2000–2016 headissue GmbH, Munich.