Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

Copyright © 2006 Sun Microsystems, Inc. All rights reserved.

JSR 217 (Maintenance Release)

Uses of Class
java.lang.ref.Reference

Packages that use Reference
java.lang.ref Provides reference-object classes, which support a limited degree of interaction with the garbage collector. 
 

Uses of Reference in java.lang.ref
 

Subclasses of Reference in java.lang.ref
 class PhantomReference
          Phantom reference objects, which are enqueued after the collector determines that their referents may otherwise be reclaimed.
 class SoftReference
          Soft reference objects, which are cleared at the discretion of the garbage collector in response to memory demand.
 class WeakReference
          Weak reference objects, which do not prevent their referents from being made finalizable, finalized, and then reclaimed.
 

Methods in java.lang.ref that return Reference
 Reference ReferenceQueue.poll()
          Polls this queue to see if a reference object is available.
 Reference ReferenceQueue.remove(long timeout)
          Removes the next reference object in this queue, blocking until either one becomes available or the given timeout period expires.
 Reference ReferenceQueue.remove()
          Removes the next reference object in this queue, blocking until one becomes available.
 


JSR 217 (Maintenance Release)

Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

For more information, please consult the JSR 217 specification.