forked from xy2401/local-doc-java-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
164 lines (72 loc) · 2.81 KB
/
index.html
File metadata and controls
164 lines (72 loc) · 2.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE>Reference Objects</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#000077" ALINK="#FF0000">
<TABLE summary="layout" BORDER="0" WIDTH="100%">
<TR>
<TD WIDTH="60">
<IMG SRC="../../images/javalogo52x88.gif" ALT="Java" BORDER=0 WIDTH=52 HEIGHT=88>
</TD>
<TD>
<center>
<h1>Reference Objects</h1>
</center>
</TD>
<TD ALIGN=RIGHT VALIGN=TOP>
<font size="-1"><a href="../../index.html">Documentation Contents</a></font>
</TD>
</TR>
</TABLE>
<!-- Body text begins here -->
<blockquote>
Reference objects support a limited degree of interaction with the garbage
collector. A program may use a reference object to maintain a reference to
some other object in such a way that the latter object may still be reclaimed
by the collector. A program may also arrange to be notified some time after
the collector has determined that the reachability of a given object has
changed. Reference objects are therefore useful for building simple caches as
well as caches that are flushed when memory runs low, for implementing mappings
that do not prevent their keys (or values) from being reclaimed, and for
scheduling pre-mortem cleanup actions in a more flexible way than is possible
with the Java finalization mechanism.
</blockquote>
<font size="+2"><b>API Specification</b></font><br>
<font size="-1">(javadoc)</font>
<ul>
<LI><b><a href="../../api/java/lang/ref/package-summary.html">java.lang.ref</a></b>
<LI><b><a href="../../api/java/lang/ref/Reference.html">java.lang.ref.Reference</a></b>
<LI><b><a href="../../api/java/lang/ref/ReferenceQueue.html">java.lang.ref.ReferenceQueue</a></b>
<LI><b><a href="../../api/java/lang/ref/SoftReference.html">java.lang.ref.SoftReference</a></b>
<LI><b><a href="../../api/java/lang/ref/WeakReference.html">java.lang.ref.WeakReference</a></b>
<LI><b><a href="../../api/java/lang/ref/PhantomReference.html">java.lang.ref.PhantomReference</a></b>
</ul>
</ul>
<p>
<!-- Body text ends here -->
<!-- ============================================================== -->
<HR SIZE=3 NOSHADE>
<TABLE summary="layout" BORDER="0" WIDTH="100%">
<TR VALIGN=TOP>
<TD>
<P><FONT SIZE="-2">
<A HREF="../../relnotes/SMICopyright.html">Copyright ©</A> 2002
<A HREF="http://www.sun.com/">Sun Microsystems, Inc.</A>
All Rights Reserved.</FONT></P>
<FONT SIZE="-1">
This is not a subscription list.
</FONT>
</TD>
<TD ALIGN=RIGHT>
<IMG SRC="../../images/sunlogo64x30.gif" ALT="Sun" BORDER=0 WIDTH=64 HEIGHT=30>
<BR>
<FONT SIZE="+1">
<i>Java Software</i>
</FONT>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>