public class SoftCacheEntry<K,T> extends SoftReference<T> implements IWeakRefCacheEntry<K,T>
SoftReference
.Constructor and Description |
---|
SoftCacheEntry(K key,
T obj,
ReferenceQueue<T> queue) |
Modifier and Type | Method and Description |
---|---|
K |
getKey()
Returns the key for the object stored in the cache entry.
|
T |
getObject()
The object in the cache.
|
get
clear, enqueue, isEnqueued
public SoftCacheEntry(K key, T obj, ReferenceQueue<T> queue)
public K getKey()
IWeakRefCacheEntry
getKey
in interface IWeakRefCacheEntry<K,T>
public T getObject()
IWeakRefCacheEntry
getObject
in interface IWeakRefCacheEntry<K,T>
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.