Package org.apache.sis.util.collection
Class Cache.Soft
java.lang.Object
java.lang.ref.Reference<V>
java.lang.ref.SoftReference<V>
org.apache.sis.util.collection.Cache.Soft
- All Implemented Interfaces:
Disposable
A soft reference which removes itself from the cache when the reference is garbage-collected.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.ref.SoftReference
get
Methods inherited from class java.lang.ref.Reference
clear, clone, enqueue, isEnqueued, reachabilityFence, refersTo
-
Field Details
-
key
The key of the referenced value.
-
-
Constructor Details
-
Soft
Creates a references to be stored in the cache under the given key.
-
-
Method Details
-
dispose
public void dispose()Removes the reference from the map.- Specified by:
dispose
in interfaceDisposable
-