-
public class CountingMemoryCache.Entry<K, V>The internal representation of a key-value pair stored by the cache.
-
-
Field Summary
Fields Modifier and Type Field Description public final Kkeypublic final CloseableReference<V>valueRefpublic intclientCountpublic booleanisOrphanpublic final CountingMemoryCache.EntryStateObserver<K>observerpublic intaccessCountpublic intsize
-
Method Summary
Modifier and Type Method Description static <K, V> CountingMemoryCache.Entry<K, V>of(K key, CloseableReference<V> valueRef, @Nullable() CountingMemoryCache.EntryStateObserver<K> observer)Creates a new entry with the usage count of 0. static <K, V> CountingMemoryCache.Entry<K, V>of(K key, CloseableReference<V> valueRef, int size, @Nullable() CountingMemoryCache.EntryStateObserver<K> observer)Creates a new entry with the usage count of 0. -
-
Method Detail
-
of
static <K, V> CountingMemoryCache.Entry<K, V> of(K key, CloseableReference<V> valueRef, @Nullable() CountingMemoryCache.EntryStateObserver<K> observer)
Creates a new entry with the usage count of 0.
-
of
static <K, V> CountingMemoryCache.Entry<K, V> of(K key, CloseableReference<V> valueRef, int size, @Nullable() CountingMemoryCache.EntryStateObserver<K> observer)
Creates a new entry with the usage count of 0.
-
-
-
-