Package org.jboss.modules.ref
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
A reapable soft reference with an attachment. If a
Reaper is given, then it will be used to asynchronously
clean up the referent.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jboss.modules.ref.Reference
Reference.Type -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSoftReference(T referent) SoftReference(T referent, A attachment) SoftReference(T referent, A attachment, ReferenceQueue<? super T> q) -
Method Summary
Methods inherited from class java.lang.ref.SoftReference
getMethods inherited from class java.lang.ref.Reference
clear, clone, enqueue, isEnqueued, reachabilityFence, refersTo
-
Field Details
-
attachment
-
reaper
-
-
Constructor Details
-
SoftReference
-
SoftReference
-
SoftReference
-
SoftReference
-
-
Method Details
-
getReaper
Description copied from interface:ReapableGet the associated reaper. -
getAttachment
Description copied from interface:ReferenceGet the attachment, if any.- Specified by:
getAttachmentin interfaceReference<T,A> - Returns:
- the attachment
-
getType
Description copied from interface:ReferenceGet the type of the reference. -
toString
-