Uses of Class
java.lang.ref.Reference

Packages that useReference
Package
Description
java.lang.ref
Provides reference-object classes, which support a limited degree of interaction with the garbage collector.
  • Uses ofReference injava.lang.ref

    Subclasses ofReference injava.lang.ref
    Modifier and Type
    Class
    Description
    class 
    Phantom reference objects, which are enqueued after the collector determines that their referents may otherwise be reclaimed.
    class 
    Soft reference objects, which are cleared at the discretion of the garbage collector in response to memory demand.
    class 
    Weak reference objects, which do not prevent their referents from being made finalizable, finalized, and then reclaimed.
    Methods injava.lang.ref that returnReference
    Modifier and Type
    Method
    Description
    Reference<? extendsT>
    ReferenceQueue.poll()
    Polls this queue to see if a reference object is available.
    Reference<? extendsT>
    ReferenceQueue.remove()
    Removes the next reference object in this queue, blocking until one becomes available.
    Reference<? extendsT>
    ReferenceQueue.remove(long timeout)
    Removes the next reference object in this queue, blocking until either one becomes available or the given timeout period expires.