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
- All Implemented Interfaces:
Reference<T,A>
@Deprecated
public class PhantomReference<T,A>
extends PhantomReference<T>
implements Reference<T,A>
Deprecated.
A reapable phantom 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 org.jboss.modules.ref.Reference
Reference.Type -
Constructor Summary
ConstructorsConstructorDescriptionPhantomReference(T referent, A attachment, ReferenceQueue<? super T> q) Deprecated.Deprecated. -
Method Summary
Methods inherited from class java.lang.ref.PhantomReference
getMethods inherited from class java.lang.ref.Reference
clear, clone, enqueue, isEnqueued, reachabilityFence
-
Constructor Details
-
PhantomReference
Deprecated. -
PhantomReference
Deprecated.
-
-
Method Details
-
getAttachment
Deprecated.Description copied from interface:ReferenceGet the attachment, if any.- Specified by:
getAttachmentin interfaceReference<T,A> - Returns:
- the attachment
-
getType
Deprecated.Description copied from interface:ReferenceGet the type of the reference. -
getReaper
Deprecated. -
toString
Deprecated.
-
Cleaneror one of the reference types from a support library such asio.smallrye.common:smallrye-common-refinstead.