Package org.wildfly.common.ref
Class CleanerReference<T,A>
java.lang.Object
java.lang.ref.Reference<T>
java.lang.ref.PhantomReference<T>
org.wildfly.common.ref.PhantomReference<T,A>
org.wildfly.common.ref.CleanerReference<T,A>
- All Implemented Interfaces:
Reference<T,A>
Deprecated, for removal: This API element is subject to removal in a future version.
A special version of
PhantomReference that is strongly retained until it is reaped by the collection thread.- Author:
- David M. Lloyd
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.wildfly.common.ref.Reference
Reference.Type -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.wildfly.common.ref.PhantomReference
getAttachment, getReaper, getType, toStringMethods inherited from class java.lang.ref.PhantomReference
getMethods inherited from class java.lang.ref.Reference
clear, clone, enqueue, isEnqueued, reachabilityFence, refersTo
-
Constructor Details
-
CleanerReference
Deprecated, for removal: This API element is subject to removal in a future version.Construct a new instance with a reaper.- Parameters:
referent- the referentattachment- the attachmentreaper- the reaper to use
-
-
Method Details
CleanerorCleanerReferenceinstead.