Class SoftReference<T,A>
java.lang.Object
java.lang.ref.Reference<T>
java.lang.ref.SoftReference<T>
org.jboss.modules.ref.SoftReference<T,A>
- Type Parameters:
T- the reference value typeA- the attachment type
- All Implemented Interfaces:
Reference<T,A>
Deprecated.
A reapable soft reference with an attachment. If a
Reaper is given, then it will be used to asynchronously
clean up the referent.- Author:
- David M. Lloyd
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface Reference
Reference.Type -
Constructor Summary
ConstructorsConstructorDescriptionSoftReference(T referent) Deprecated.SoftReference(T referent, A attachment) Deprecated.SoftReference(T referent, A attachment, ReferenceQueue<? super T> q) Deprecated.Deprecated. -
Method Summary
Methods inherited from class SoftReference
getMethods inherited from class Reference
clear, clone, enqueue, isEnqueued, reachabilityFence
-
Constructor Details
-
SoftReference
Deprecated. -
SoftReference
-
SoftReference
Deprecated. -
SoftReference
-
-
Method Details
-
getReaper
-
getAttachment
-
getType
-
toString
-
Cleaneror one of the reference types from a support library such asio.smallrye.common:smallrye-common-refinstead.