public interface IWeakRefCacheEntryFactory<K,T>
WeakValueCache
.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.
|
IWeakRefCacheEntry<K,T> newCacheEntry(K key, T obj, ReferenceQueue<T> queue)
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
,
SoftReference
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.