Spec-Zone .ru
спецификации, руководства, описания, API
Please note that the specifications and other information contained herein are not final and are subject to change. The information is being made available to you solely for purpose of evaluation.

Java™ Platform
Standard Ed. 7

DRAFT ea-b118

Uses of Class
java.lang.ref.Reference

Packages that use Reference
Package Description
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
Modifier and Type Class and Description
 class PhantomReference<T>
          Phantom reference objects, which are enqueued after the collector determines that their referents may otherwise be reclaimed.
 class SoftReference<T>
          Soft reference objects, which are cleared at the discretion of the garbage collector in response to memory demand.
 class WeakReference<T>
          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
Modifier and Type Method and Description
 Reference<? extends T> ReferenceQueue.poll()
          Polls this queue to see if a reference object is available.
 Reference<? extends T> ReferenceQueue.remove()
          Removes the next reference object in this queue, blocking until one becomes available.
 Reference<? extends T> ReferenceQueue.remove(long timeout)
          Removes the next reference object in this queue, blocking until either one becomes available or the given timeout period expires.
 


Java™ Platform
Standard Ed. 7

DRAFT ea-b118

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Copyright © 1993, 2010, Oracle Corporation. All rights reserved.
DRAFT ea-b118

Scripting on this page tracks web page traffic, but does not change the content in any way.