public class ReadOnlyCacheEntry<K,V> extends org.cache2k.AbstractCacheEntry<K,V> implements ResultEntry<K,V>
| Constructor and Description |
|---|
ReadOnlyCacheEntry(Entry<K,V> entry) |
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getException() |
K |
getKey()
Associated key
|
long |
getRefreshTime() |
V |
getValue() |
V |
getValueOrException()
Associated value or the
ExceptionWrapper |
static <K,V> ReadOnlyCacheEntry<K,V> |
of(org.cache2k.CacheEntry<K,V> entry) |
public static <K,V> ReadOnlyCacheEntry<K,V> of(org.cache2k.CacheEntry<K,V> entry)
public Throwable getException()
public K getKey()
ExaminationEntrypublic long getRefreshTime()
getRefreshTime in interface ExaminationEntry<K,V>public V getValueOrException()
ExaminationEntryExceptionWrappergetValueOrException in interface ExaminationEntry<K,V>cache2k API documentation. Copyright © 2000–2019 headissue GmbH, Munich.