source: sandbox/expresso-solr/solr/docs/api/org/apache/solr/util/ConcurrentLRUCache.html @ 7588

Revision 7588, 27.2 KB checked in by adir, 11 years ago (diff)

Ticket #000 - Adicionando a integracao de buscas com Solr na base a ser isnerida na comunidade

Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<!--NewPage-->
3<HTML>
4<HEAD>
5<!-- Generated by javadoc (build 1.6.0_24) on Mon Jun 25 15:26:26 EDT 2012 -->
6<META http-equiv="Content-Type" content="text/html; charset=utf-8">
7<TITLE>
8ConcurrentLRUCache (Solr 4.0.0-ALPHA API)
9</TITLE>
10
11<META NAME="date" CONTENT="2012-06-25">
12
13<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
14
15<SCRIPT type="text/javascript">
16function windowTitle()
17{
18    if (location.href.indexOf('is-external=true') == -1) {
19        parent.document.title="ConcurrentLRUCache (Solr 4.0.0-ALPHA API)";
20    }
21}
22</SCRIPT>
23<NOSCRIPT>
24</NOSCRIPT>
25
26</HEAD>
27
28<BODY BGCOLOR="white" onload="windowTitle();">
29<HR>
30
31
32<!-- ========= START OF TOP NAVBAR ======= -->
33<A NAME="navbar_top"><!-- --></A>
34<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
35<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
36<TR>
37<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
38<A NAME="navbar_top_firstrow"><!-- --></A>
39<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
40  <TR ALIGN="center" VALIGN="top">
41  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
42  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
43  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
44  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/ConcurrentLRUCache.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
45  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
46  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
47  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
48  </TR>
49</TABLE>
50</TD>
51<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
52</EM>
53</TD>
54</TR>
55
56<TR>
57<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
58&nbsp;<A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.Stats.html" title="class in org.apache.solr.util"><B>PREV CLASS</B></A>&nbsp;
59&nbsp;<A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.EvictionListener.html" title="interface in org.apache.solr.util"><B>NEXT CLASS</B></A></FONT></TD>
60<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
61  <A HREF="../../../../index.html?org/apache/solr/util/ConcurrentLRUCache.html" target="_top"><B>FRAMES</B></A>  &nbsp;
62&nbsp;<A HREF="ConcurrentLRUCache.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
63&nbsp;<SCRIPT type="text/javascript">
64  <!--
65  if(window==top) {
66    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
67  }
68  //-->
69</SCRIPT>
70<NOSCRIPT>
71  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
72</NOSCRIPT>
73
74
75</FONT></TD>
76</TR>
77<TR>
78<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
79  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
80<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
81DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
82</TR>
83</TABLE>
84<A NAME="skip-navbar_top"></A>
85<!-- ========= END OF TOP NAVBAR ========= -->
86
87<HR>
88<!-- ======== START OF CLASS DATA ======== -->
89<H2>
90<FONT SIZE="-1">
91org.apache.solr.util</FONT>
92<BR>
93Class ConcurrentLRUCache&lt;K,V&gt;</H2>
94<PRE>
95<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
96  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.solr.util.ConcurrentLRUCache&lt;K,V&gt;</B>
97</PRE>
98<HR>
99<DL>
100<DT><PRE>public class <B>ConcurrentLRUCache&lt;K,V&gt;</B><DT>extends <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></DL>
101</PRE>
102
103<P>
104A LRU cache implementation based upon ConcurrentHashMap and other techniques to reduce
105 contention and synchronization overhead to utilize multiple CPU cores more effectively.
106 <p/>
107 Note that the implementation does not follow a true LRU (least-recently-used) eviction
108 strategy. Instead it strives to remove least recently used items but when the initial
109 cleanup does not remove enough items to reach the 'acceptableWaterMark' limit, it can
110 remove more items forcefully regardless of access order.
111<P>
112
113<P>
114<DL>
115<DT><B>Since:</B></DT>
116  <DD>solr 1.4</DD>
117</DL>
118<HR>
119
120<P>
121<!-- ======== NESTED CLASS SUMMARY ======== -->
122
123<A NAME="nested_class_summary"><!-- --></A>
124<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
125<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
126<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
127<B>Nested Class Summary</B></FONT></TH>
128</TR>
129<TR BGCOLOR="white" CLASS="TableRowColor">
130<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
131<CODE>static&nbsp;interface</CODE></FONT></TD>
132<TD><CODE><B><A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.EvictionListener.html" title="interface in org.apache.solr.util">ConcurrentLRUCache.EvictionListener</A>&lt;<A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.EvictionListener.html" title="type parameter in ConcurrentLRUCache.EvictionListener">K</A>,<A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.EvictionListener.html" title="type parameter in ConcurrentLRUCache.EvictionListener">V</A>&gt;</B></CODE>
133
134<BR>
135&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
136</TR>
137<TR BGCOLOR="white" CLASS="TableRowColor">
138<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
139<CODE>static&nbsp;class</CODE></FONT></TD>
140<TD><CODE><B><A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.Stats.html" title="class in org.apache.solr.util">ConcurrentLRUCache.Stats</A></B></CODE>
141
142<BR>
143&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
144</TR>
145</TABLE>
146&nbsp;
147<!-- ======== CONSTRUCTOR SUMMARY ======== -->
148
149<A NAME="constructor_summary"><!-- --></A>
150<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
151<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
152<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
153<B>Constructor Summary</B></FONT></TH>
154</TR>
155<TR BGCOLOR="white" CLASS="TableRowColor">
156<TD><CODE><B><A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.html#ConcurrentLRUCache(int, int)">ConcurrentLRUCache</A></B>(int&nbsp;size,
157                   int&nbsp;lowerWatermark)</CODE>
158
159<BR>
160&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
161</TR>
162<TR BGCOLOR="white" CLASS="TableRowColor">
163<TD><CODE><B><A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.html#ConcurrentLRUCache(int, int, int, int, boolean, boolean, org.apache.solr.util.ConcurrentLRUCache.EvictionListener)">ConcurrentLRUCache</A></B>(int&nbsp;upperWaterMark,
164                   int&nbsp;lowerWaterMark,
165                   int&nbsp;acceptableWatermark,
166                   int&nbsp;initialSize,
167                   boolean&nbsp;runCleanupThread,
168                   boolean&nbsp;runNewThreadForCleanup,
169                   <A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.EvictionListener.html" title="interface in org.apache.solr.util">ConcurrentLRUCache.EvictionListener</A>&lt;<A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.html" title="type parameter in ConcurrentLRUCache">K</A>,<A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.html" title="type parameter in ConcurrentLRUCache">V</A>&gt;&nbsp;evictionListener)</CODE>
170
171<BR>
172&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
173</TR>
174</TABLE>
175&nbsp;
176<!-- ========== METHOD SUMMARY =========== -->
177
178<A NAME="method_summary"><!-- --></A>
179<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
180<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
181<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
182<B>Method Summary</B></FONT></TH>
183</TR>
184<TR BGCOLOR="white" CLASS="TableRowColor">
185<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
186<CODE>&nbsp;void</CODE></FONT></TD>
187<TD><CODE><B><A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.html#clear()">clear</A></B>()</CODE>
188
189<BR>
190&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
191</TR>
192<TR BGCOLOR="white" CLASS="TableRowColor">
193<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
194<CODE>&nbsp;void</CODE></FONT></TD>
195<TD><CODE><B><A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.html#destroy()">destroy</A></B>()</CODE>
196
197<BR>
198&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
199</TR>
200<TR BGCOLOR="white" CLASS="TableRowColor">
201<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
202<CODE>protected &nbsp;void</CODE></FONT></TD>
203<TD><CODE><B><A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.html#finalize()">finalize</A></B>()</CODE>
204
205<BR>
206&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
207</TR>
208<TR BGCOLOR="white" CLASS="TableRowColor">
209<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
210<CODE>&nbsp;<A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.html" title="type parameter in ConcurrentLRUCache">V</A></CODE></FONT></TD>
211<TD><CODE><B><A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.html#get(K)">get</A></B>(<A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.html" title="type parameter in ConcurrentLRUCache">K</A>&nbsp;key)</CODE>
212
213<BR>
214&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
215</TR>
216<TR BGCOLOR="white" CLASS="TableRowColor">
217<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
218<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A>&lt;<A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.html" title="type parameter in ConcurrentLRUCache">K</A>,<A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.html" title="type parameter in ConcurrentLRUCache">V</A>&gt;</CODE></FONT></TD>
219<TD><CODE><B><A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.html#getLatestAccessedItems(int)">getLatestAccessedItems</A></B>(int&nbsp;n)</CODE>
220
221<BR>
222&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
223</TR>
224<TR BGCOLOR="white" CLASS="TableRowColor">
225<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
226<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A>&lt;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>,org.apache.solr.util.ConcurrentLRUCache.CacheEntry&lt;<A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.html" title="type parameter in ConcurrentLRUCache">K</A>,<A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.html" title="type parameter in ConcurrentLRUCache">V</A>&gt;&gt;</CODE></FONT></TD>
227<TD><CODE><B><A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.html#getMap()">getMap</A></B>()</CODE>
228
229<BR>
230&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
231</TR>
232<TR BGCOLOR="white" CLASS="TableRowColor">
233<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
234<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A>&lt;<A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.html" title="type parameter in ConcurrentLRUCache">K</A>,<A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.html" title="type parameter in ConcurrentLRUCache">V</A>&gt;</CODE></FONT></TD>
235<TD><CODE><B><A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.html#getOldestAccessedItems(int)">getOldestAccessedItems</A></B>(int&nbsp;n)</CODE>
236
237<BR>
238&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns 'n' number of oldest accessed entries present in this cache.</TD>
239</TR>
240<TR BGCOLOR="white" CLASS="TableRowColor">
241<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
242<CODE>&nbsp;<A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.Stats.html" title="class in org.apache.solr.util">ConcurrentLRUCache.Stats</A></CODE></FONT></TD>
243<TD><CODE><B><A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.html#getStats()">getStats</A></B>()</CODE>
244
245<BR>
246&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
247</TR>
248<TR BGCOLOR="white" CLASS="TableRowColor">
249<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
250<CODE>&nbsp;<A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.html" title="type parameter in ConcurrentLRUCache">V</A></CODE></FONT></TD>
251<TD><CODE><B><A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.html#put(K, V)">put</A></B>(<A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.html" title="type parameter in ConcurrentLRUCache">K</A>&nbsp;key,
252    <A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.html" title="type parameter in ConcurrentLRUCache">V</A>&nbsp;val)</CODE>
253
254<BR>
255&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
256</TR>
257<TR BGCOLOR="white" CLASS="TableRowColor">
258<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
259<CODE>&nbsp;<A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.html" title="type parameter in ConcurrentLRUCache">V</A></CODE></FONT></TD>
260<TD><CODE><B><A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.html#remove(K)">remove</A></B>(<A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.html" title="type parameter in ConcurrentLRUCache">K</A>&nbsp;key)</CODE>
261
262<BR>
263&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
264</TR>
265<TR BGCOLOR="white" CLASS="TableRowColor">
266<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
267<CODE>&nbsp;void</CODE></FONT></TD>
268<TD><CODE><B><A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.html#setAlive(boolean)">setAlive</A></B>(boolean&nbsp;live)</CODE>
269
270<BR>
271&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
272</TR>
273<TR BGCOLOR="white" CLASS="TableRowColor">
274<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
275<CODE>&nbsp;int</CODE></FONT></TD>
276<TD><CODE><B><A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.html#size()">size</A></B>()</CODE>
277
278<BR>
279&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
280</TR>
281</TABLE>
282&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
283<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
284<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
285<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
286</TR>
287<TR BGCOLOR="white" CLASS="TableRowColor">
288<TD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
289</TR>
290</TABLE>
291&nbsp;
292<P>
293
294<!-- ========= CONSTRUCTOR DETAIL ======== -->
295
296<A NAME="constructor_detail"><!-- --></A>
297<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
298<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
299<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
300<B>Constructor Detail</B></FONT></TH>
301</TR>
302</TABLE>
303
304<A NAME="ConcurrentLRUCache(int, int, int, int, boolean, boolean, org.apache.solr.util.ConcurrentLRUCache.EvictionListener)"><!-- --></A><H3>
305ConcurrentLRUCache</H3>
306<PRE>
307public <B>ConcurrentLRUCache</B>(int&nbsp;upperWaterMark,
308                          int&nbsp;lowerWaterMark,
309                          int&nbsp;acceptableWatermark,
310                          int&nbsp;initialSize,
311                          boolean&nbsp;runCleanupThread,
312                          boolean&nbsp;runNewThreadForCleanup,
313                          <A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.EvictionListener.html" title="interface in org.apache.solr.util">ConcurrentLRUCache.EvictionListener</A>&lt;<A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.html" title="type parameter in ConcurrentLRUCache">K</A>,<A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.html" title="type parameter in ConcurrentLRUCache">V</A>&gt;&nbsp;evictionListener)</PRE>
314<DL>
315</DL>
316<HR>
317
318<A NAME="ConcurrentLRUCache(int, int)"><!-- --></A><H3>
319ConcurrentLRUCache</H3>
320<PRE>
321public <B>ConcurrentLRUCache</B>(int&nbsp;size,
322                          int&nbsp;lowerWatermark)</PRE>
323<DL>
324</DL>
325
326<!-- ============ METHOD DETAIL ========== -->
327
328<A NAME="method_detail"><!-- --></A>
329<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
330<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
331<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
332<B>Method Detail</B></FONT></TH>
333</TR>
334</TABLE>
335
336<A NAME="setAlive(boolean)"><!-- --></A><H3>
337setAlive</H3>
338<PRE>
339public void <B>setAlive</B>(boolean&nbsp;live)</PRE>
340<DL>
341<DD><DL>
342</DL>
343</DD>
344</DL>
345<HR>
346
347<A NAME="get(java.lang.Object)"><!-- --></A><A NAME="get(K)"><!-- --></A><H3>
348get</H3>
349<PRE>
350public <A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.html" title="type parameter in ConcurrentLRUCache">V</A> <B>get</B>(<A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.html" title="type parameter in ConcurrentLRUCache">K</A>&nbsp;key)</PRE>
351<DL>
352<DD><DL>
353</DL>
354</DD>
355</DL>
356<HR>
357
358<A NAME="remove(java.lang.Object)"><!-- --></A><A NAME="remove(K)"><!-- --></A><H3>
359remove</H3>
360<PRE>
361public <A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.html" title="type parameter in ConcurrentLRUCache">V</A> <B>remove</B>(<A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.html" title="type parameter in ConcurrentLRUCache">K</A>&nbsp;key)</PRE>
362<DL>
363<DD><DL>
364</DL>
365</DD>
366</DL>
367<HR>
368
369<A NAME="put(java.lang.Object,java.lang.Object)"><!-- --></A><A NAME="put(K, V)"><!-- --></A><H3>
370put</H3>
371<PRE>
372public <A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.html" title="type parameter in ConcurrentLRUCache">V</A> <B>put</B>(<A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.html" title="type parameter in ConcurrentLRUCache">K</A>&nbsp;key,
373             <A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.html" title="type parameter in ConcurrentLRUCache">V</A>&nbsp;val)</PRE>
374<DL>
375<DD><DL>
376</DL>
377</DD>
378</DL>
379<HR>
380
381<A NAME="getOldestAccessedItems(int)"><!-- --></A><H3>
382getOldestAccessedItems</H3>
383<PRE>
384public <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A>&lt;<A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.html" title="type parameter in ConcurrentLRUCache">K</A>,<A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.html" title="type parameter in ConcurrentLRUCache">V</A>&gt; <B>getOldestAccessedItems</B>(int&nbsp;n)</PRE>
385<DL>
386<DD>Returns 'n' number of oldest accessed entries present in this cache.
387
388 This uses a TreeSet to collect the 'n' oldest items ordered by ascending last access time
389  and returns a LinkedHashMap containing 'n' or less than 'n' entries.
390<P>
391<DD><DL>
392<DT><B>Parameters:</B><DD><CODE>n</CODE> - the number of oldest items needed
393<DT><B>Returns:</B><DD>a LinkedHashMap containing 'n' or less than 'n' entries</DL>
394</DD>
395</DL>
396<HR>
397
398<A NAME="getLatestAccessedItems(int)"><!-- --></A><H3>
399getLatestAccessedItems</H3>
400<PRE>
401public <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A>&lt;<A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.html" title="type parameter in ConcurrentLRUCache">K</A>,<A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.html" title="type parameter in ConcurrentLRUCache">V</A>&gt; <B>getLatestAccessedItems</B>(int&nbsp;n)</PRE>
402<DL>
403<DD><DL>
404</DL>
405</DD>
406</DL>
407<HR>
408
409<A NAME="size()"><!-- --></A><H3>
410size</H3>
411<PRE>
412public int <B>size</B>()</PRE>
413<DL>
414<DD><DL>
415</DL>
416</DD>
417</DL>
418<HR>
419
420<A NAME="clear()"><!-- --></A><H3>
421clear</H3>
422<PRE>
423public void <B>clear</B>()</PRE>
424<DL>
425<DD><DL>
426</DL>
427</DD>
428</DL>
429<HR>
430
431<A NAME="getMap()"><!-- --></A><H3>
432getMap</H3>
433<PRE>
434public <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A>&lt;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>,org.apache.solr.util.ConcurrentLRUCache.CacheEntry&lt;<A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.html" title="type parameter in ConcurrentLRUCache">K</A>,<A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.html" title="type parameter in ConcurrentLRUCache">V</A>&gt;&gt; <B>getMap</B>()</PRE>
435<DL>
436<DD><DL>
437</DL>
438</DD>
439</DL>
440<HR>
441
442<A NAME="destroy()"><!-- --></A><H3>
443destroy</H3>
444<PRE>
445public void <B>destroy</B>()</PRE>
446<DL>
447<DD><DL>
448</DL>
449</DD>
450</DL>
451<HR>
452
453<A NAME="getStats()"><!-- --></A><H3>
454getStats</H3>
455<PRE>
456public <A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.Stats.html" title="class in org.apache.solr.util">ConcurrentLRUCache.Stats</A> <B>getStats</B>()</PRE>
457<DL>
458<DD><DL>
459</DL>
460</DD>
461</DL>
462<HR>
463
464<A NAME="finalize()"><!-- --></A><H3>
465finalize</H3>
466<PRE>
467protected void <B>finalize</B>()
468                 throws <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A></PRE>
469<DL>
470<DD><DL>
471<DT><B>Overrides:</B><DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A></CODE> in class <CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></CODE></DL>
472</DD>
473<DD><DL>
474
475<DT><B>Throws:</B>
476<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A></CODE></DL>
477</DD>
478</DL>
479<!-- ========= END OF CLASS DATA ========= -->
480<HR>
481
482
483<!-- ======= START OF BOTTOM NAVBAR ====== -->
484<A NAME="navbar_bottom"><!-- --></A>
485<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
486<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
487<TR>
488<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
489<A NAME="navbar_bottom_firstrow"><!-- --></A>
490<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
491  <TR ALIGN="center" VALIGN="top">
492  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
493  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
494  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
495  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/ConcurrentLRUCache.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
496  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
497  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
498  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
499  </TR>
500</TABLE>
501</TD>
502<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
503</EM>
504</TD>
505</TR>
506
507<TR>
508<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
509&nbsp;<A HREF="../../../../org/apache/solr/util/ConcurrentLFUCache.Stats.html" title="class in org.apache.solr.util"><B>PREV CLASS</B></A>&nbsp;
510&nbsp;<A HREF="../../../../org/apache/solr/util/ConcurrentLRUCache.EvictionListener.html" title="interface in org.apache.solr.util"><B>NEXT CLASS</B></A></FONT></TD>
511<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
512  <A HREF="../../../../index.html?org/apache/solr/util/ConcurrentLRUCache.html" target="_top"><B>FRAMES</B></A>  &nbsp;
513&nbsp;<A HREF="ConcurrentLRUCache.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
514&nbsp;<SCRIPT type="text/javascript">
515  <!--
516  if(window==top) {
517    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
518  }
519  //-->
520</SCRIPT>
521<NOSCRIPT>
522  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
523</NOSCRIPT>
524
525
526</FONT></TD>
527</TR>
528<TR>
529<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
530  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
531<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
532DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
533</TR>
534</TABLE>
535<A NAME="skip-navbar_bottom"></A>
536<!-- ======== END OF BOTTOM NAVBAR ======= -->
537
538<HR>
539
540          <address>Copyright &copy; 2000-2012 Apache Software Foundation.  All Rights Reserved.</address>
541          <script src='../../../../prettify.js' type='text/javascript'></script>
542          <script type='text/javascript'>
543            (function(){
544              var oldonload = window.onload;
545              if (typeof oldonload != 'function') {
546                window.onload = prettyPrint;
547              } else {
548                window.onload = function() {
549                  oldonload();
550                  prettyPrint();
551                }
552              }
553            })();
554          </script>
555       
556</BODY>
557</HTML>
Note: See TracBrowser for help on using the repository browser.