public class WeakCacheEntryFactory<K,T> extends Object implements IWeakRefCacheEntryFactory<K,T>
WeakReference cache entries.| Constructor and Description |
|---|
WeakCacheEntryFactory() |
| Modifier and Type | Method and Description |
|---|---|
IWeakRefCacheEntry<K,T> |
newCacheEntry(K key,
T obj,
ReferenceQueue<T> queue)
Creates a weak reference object to serve as the value in the cache for
the given application object.
|
public IWeakRefCacheEntry<K,T> newCacheEntry(K key, T obj, ReferenceQueue<T> queue)
IWeakRefCacheEntryFactorynewCacheEntry in interface IWeakRefCacheEntryFactory<K,T>key - The object identifier.obj - The application object.queue - The weak or soft reference object must be created such that it
will appear on this queue when the reference is cleared by the
garbage collector.WeakReference,
SoftReferenceCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.