public class ReadOnlyCacheEntry<K,V> extends Object implements ResultEntry<K,V>
Constructor and Description |
---|
ReadOnlyCacheEntry(Entry<K,V> entry) |
ReadOnlyCacheEntry(K _key,
V _valueOrException,
long _lastModification) |
Modifier and Type | Method and Description |
---|---|
Throwable |
getException() |
K |
getKey()
Associated key
|
long |
getLastModification() |
V |
getValue() |
V |
getValueOrException()
Associated value or the
ExceptionWrapper |
boolean |
isStable()
Entry is locked and does not need synchronization to read values consistently
|
static <K,V> ReadOnlyCacheEntry<K,V> |
of(CacheEntry<K,V> entry) |
public static <K,V> ReadOnlyCacheEntry<K,V> of(CacheEntry<K,V> entry)
public Throwable getException()
getException
in interface CacheEntry<K,V>
getException
in interface SimpleCacheEntry<K,V>
public K getKey()
ExaminationEntry
getKey
in interface CacheEntry<K,V>
getKey
in interface ExaminationEntry<K,V>
getKey
in interface SimpleCacheEntry<K,V>
public long getLastModification()
getLastModification
in interface CacheEntry<K,V>
getLastModification
in interface ExaminationEntry<K,V>
public V getValue()
getValue
in interface CacheEntry<K,V>
getValue
in interface SimpleCacheEntry<K,V>
public V getValueOrException()
ExaminationEntry
ExceptionWrapper
getValueOrException
in interface ExaminationEntry<K,V>
public boolean isStable()
ExaminationEntry
isStable
in interface ExaminationEntry<K,V>
cache2k API documentation. Copyright © 2000–2018 headissue GmbH, Munich.