Class PhantomReference<T,A>
java.lang.Object
java.lang.ref.Reference<T>
java.lang.ref.PhantomReference<T>
org.jboss.modules.ref.PhantomReference<T,A>
- Type Parameters:
T- the reference value typeA- the attachment type
public class PhantomReference<T,A>
extends PhantomReference<T>
implements Reference<T,A>, Reapable<T,A>
A reapable phantom 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 Reference
Reference.Type -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class PhantomReference
getMethods inherited from class Reference
clear, clone, enqueue, isEnqueued, reachabilityFence, refersTo
-
Field Details
-
attachment
-
reaper
-
-
Constructor Details
-
PhantomReference
-
PhantomReference
-
-
Method Details
-
getAttachment
-
getType
-
getReaper
-
toString
-