Debian Codegraph @

docs/apiDocs/org/apache/axis/components/threadpool/ThreadPool.html

raw
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.4.2_08) on Sat Apr 22 18:57:18 PDT 2006 -->
6 <TITLE>
7 ThreadPool (Axis API)
8 </TITLE>
9
10 <META NAME="keywords" CONTENT="org.apache.axis.components.threadpool.ThreadPool class">
11
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
13
14 <SCRIPT type="text/javascript">
15 function windowTitle()
16 {
17 parent.document.title="ThreadPool (Axis API)";
18 }
19 </SCRIPT>
20
21 </HEAD>
22
23 <BODY BGCOLOR="white" onload="windowTitle();">
24
25
26 <!-- ========= START OF TOP NAVBAR ======= -->
27 <A NAME="navbar_top"><!-- --></A>
28 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
29 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
30 <TR>
31 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
32 <A NAME="navbar_top_firstrow"><!-- --></A>
33 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
34 <TR ALIGN="center" VALIGN="top">
35 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
36 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
37 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ThreadPool.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
39 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
43 </TR>
44 </TABLE>
45 </TD>
46 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
47 </EM>
48 </TD>
49 </TR>
50
51 <TR>
52 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
53 &nbsp;PREV CLASS&nbsp;
54 &nbsp;NEXT CLASS</FONT></TD>
55 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
56 <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
57 &nbsp;<A HREF="ThreadPool.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
58 &nbsp;<SCRIPT type="text/javascript">
59 <!--
60 if(window==top) {
61 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
62 }
63 //-->
64 </SCRIPT>
65 <NOSCRIPT>
66 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
67 </NOSCRIPT>
68
69 </FONT></TD>
70 </TR>
71 <TR>
72 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
73 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
74 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
75 DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
76 </TR>
77 </TABLE>
78 <A NAME="skip-navbar_top"></A>
79 <!-- ========= END OF TOP NAVBAR ========= -->
80
81 <HR>
82 <!-- ======== START OF CLASS DATA ======== -->
83 <H2>
84 <FONT SIZE="-1">
85 org.apache.axis.components.threadpool</FONT>
86 <BR>
87 Class ThreadPool</H2>
88 <PRE>
89 java.lang.Object
90 <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by"><B>org.apache.axis.components.threadpool.ThreadPool</B>
91 </PRE>
92 <HR>
93 <DL>
94 <DT>public class <B>ThreadPool</B><DT>extends java.lang.Object</DL>
95
96 <P>
97 <DL>
98 <DT><B>Author:</B></DT>
99 <DD>James M Snell ([email protected])</DD>
100 </DL>
101 <HR>
102
103 <P>
104 <!-- ======== NESTED CLASS SUMMARY ======== -->
105
106
107 <!-- =========== FIELD SUMMARY =========== -->
108
109 <A NAME="field_summary"><!-- --></A>
110 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
111 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
112 <TD COLSPAN=2><FONT SIZE="+2">
113 <B>Field Summary</B></FONT></TD>
114 </TR>
115 <TR BGCOLOR="white" CLASS="TableRowColor">
116 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
117 <CODE>&nbsp;boolean</CODE></FONT></TD>
118 <TD><CODE><B><A HREF="../../../../../org/apache/axis/components/threadpool/ThreadPool.html#_shutdown">_shutdown</A></B></CODE>
119
120 <BR>
121 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
122 </TR>
123 <TR BGCOLOR="white" CLASS="TableRowColor">
124 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
125 <CODE>static&nbsp;int</CODE></FONT></TD>
126 <TD><CODE><B><A HREF="../../../../../org/apache/axis/components/threadpool/ThreadPool.html#DEFAULT_MAX_THREADS">DEFAULT_MAX_THREADS</A></B></CODE>
127
128 <BR>
129 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
130 </TR>
131 <TR BGCOLOR="white" CLASS="TableRowColor">
132 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
133 <CODE>protected static&nbsp;org.apache.commons.logging.Log</CODE></FONT></TD>
134 <TD><CODE><B><A HREF="../../../../../org/apache/axis/components/threadpool/ThreadPool.html#log">log</A></B></CODE>
135
136 <BR>
137 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
138 </TR>
139 <TR BGCOLOR="white" CLASS="TableRowColor">
140 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
141 <CODE>protected &nbsp;long</CODE></FONT></TD>
142 <TD><CODE><B><A HREF="../../../../../org/apache/axis/components/threadpool/ThreadPool.html#threadcount">threadcount</A></B></CODE>
143
144 <BR>
145 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
146 </TR>
147 <TR BGCOLOR="white" CLASS="TableRowColor">
148 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
149 <CODE>protected &nbsp;java.util.Map</CODE></FONT></TD>
150 <TD><CODE><B><A HREF="../../../../../org/apache/axis/components/threadpool/ThreadPool.html#threads">threads</A></B></CODE>
151
152 <BR>
153 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
154 </TR>
155 </TABLE>
156 &nbsp;
157 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
158
159 <A NAME="constructor_summary"><!-- --></A>
160 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
161 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
162 <TD COLSPAN=2><FONT SIZE="+2">
163 <B>Constructor Summary</B></FONT></TD>
164 </TR>
165 <TR BGCOLOR="white" CLASS="TableRowColor">
166 <TD><CODE><B><A HREF="../../../../../org/apache/axis/components/threadpool/ThreadPool.html#ThreadPool()">ThreadPool</A></B>()</CODE>
167
168 <BR>
169 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
170 </TR>
171 <TR BGCOLOR="white" CLASS="TableRowColor">
172 <TD><CODE><B><A HREF="../../../../../org/apache/axis/components/threadpool/ThreadPool.html#ThreadPool(int)">ThreadPool</A></B>(int&nbsp;maxPoolSize)</CODE>
173
174 <BR>
175 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
176 </TR>
177 </TABLE>
178 &nbsp;
179 <!-- ========== METHOD SUMMARY =========== -->
180
181 <A NAME="method_summary"><!-- --></A>
182 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
183 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
184 <TD COLSPAN=2><FONT SIZE="+2">
185 <B>Method Summary</B></FONT></TD>
186 </TR>
187 <TR BGCOLOR="white" CLASS="TableRowColor">
188 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
189 <CODE>&nbsp;void</CODE></FONT></TD>
190 <TD><CODE><B><A HREF="../../../../../org/apache/axis/components/threadpool/ThreadPool.html#addWorker(java.lang.Runnable)">addWorker</A></B>(java.lang.Runnable&nbsp;worker)</CODE>
191
192 <BR>
193 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds a new worker to the pool</TD>
194 </TR>
195 <TR BGCOLOR="white" CLASS="TableRowColor">
196 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
197 <CODE>&nbsp;void</CODE></FONT></TD>
198 <TD><CODE><B><A HREF="../../../../../org/apache/axis/components/threadpool/ThreadPool.html#awaitShutdown()">awaitShutdown</A></B>()</CODE>
199
200 <BR>
201 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Await shutdown of the worker</TD>
202 </TR>
203 <TR BGCOLOR="white" CLASS="TableRowColor">
204 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
205 <CODE>&nbsp;boolean</CODE></FONT></TD>
206 <TD><CODE><B><A HREF="../../../../../org/apache/axis/components/threadpool/ThreadPool.html#awaitShutdown(long)">awaitShutdown</A></B>(long&nbsp;timeout)</CODE>
207
208 <BR>
209 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Await shutdown of the worker</TD>
210 </TR>
211 <TR BGCOLOR="white" CLASS="TableRowColor">
212 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
213 <CODE>&nbsp;void</CODE></FONT></TD>
214 <TD><CODE><B><A HREF="../../../../../org/apache/axis/components/threadpool/ThreadPool.html#cleanup()">cleanup</A></B>()</CODE>
215
216 <BR>
217 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
218 </TR>
219 <TR BGCOLOR="white" CLASS="TableRowColor">
220 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
221 <CODE>&nbsp;long</CODE></FONT></TD>
222 <TD><CODE><B><A HREF="../../../../../org/apache/axis/components/threadpool/ThreadPool.html#getWorkerCount()">getWorkerCount</A></B>()</CODE>
223
224 <BR>
225 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the total number of currently active workers</TD>
226 </TR>
227 <TR BGCOLOR="white" CLASS="TableRowColor">
228 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
229 <CODE>&nbsp;void</CODE></FONT></TD>
230 <TD><CODE><B><A HREF="../../../../../org/apache/axis/components/threadpool/ThreadPool.html#interruptAll()">interruptAll</A></B>()</CODE>
231
232 <BR>
233 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Forcefully interrupt all workers</TD>
234 </TR>
235 <TR BGCOLOR="white" CLASS="TableRowColor">
236 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
237 <CODE>&nbsp;boolean</CODE></FONT></TD>
238 <TD><CODE><B><A HREF="../../../../../org/apache/axis/components/threadpool/ThreadPool.html#isShutdown()">isShutdown</A></B>()</CODE>
239
240 <BR>
241 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if all workers have been shutdown</TD>
242 </TR>
243 <TR BGCOLOR="white" CLASS="TableRowColor">
244 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
245 <CODE>&nbsp;boolean</CODE></FONT></TD>
246 <TD><CODE><B><A HREF="../../../../../org/apache/axis/components/threadpool/ThreadPool.html#isShuttingDown()">isShuttingDown</A></B>()</CODE>
247
248 <BR>
249 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if all workers are in the process of shutting down</TD>
250 </TR>
251 <TR BGCOLOR="white" CLASS="TableRowColor">
252 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
253 <CODE>&nbsp;void</CODE></FONT></TD>
254 <TD><CODE><B><A HREF="../../../../../org/apache/axis/components/threadpool/ThreadPool.html#safeShutdown()">safeShutdown</A></B>()</CODE>
255
256 <BR>
257 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Forcefully shutdown the pool</TD>
258 </TR>
259 <TR BGCOLOR="white" CLASS="TableRowColor">
260 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
261 <CODE>&nbsp;void</CODE></FONT></TD>
262 <TD><CODE><B><A HREF="../../../../../org/apache/axis/components/threadpool/ThreadPool.html#shutdown()">shutdown</A></B>()</CODE>
263
264 <BR>
265 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Forcefully shutdown the pool</TD>
266 </TR>
267 <TR BGCOLOR="white" CLASS="TableRowColor">
268 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
269 <CODE>&nbsp;void</CODE></FONT></TD>
270 <TD><CODE><B><A HREF="../../../../../org/apache/axis/components/threadpool/ThreadPool.html#workerDone(java.lang.Runnable, boolean)">workerDone</A></B>(java.lang.Runnable&nbsp;worker,
271 boolean&nbsp;restart)</CODE>
272
273 <BR>
274 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Used by MessageWorkers to notify the pool that it is done</TD>
275 </TR>
276 </TABLE>
277 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
278 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
279 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
280 <TD><B>Methods inherited from class java.lang.Object</B></TD>
281 </TR>
282 <TR BGCOLOR="white" CLASS="TableRowColor">
283 <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
284 </TR>
285 </TABLE>
286 &nbsp;
287 <P>
288
289 <!-- ============ FIELD DETAIL =========== -->
290
291 <A NAME="field_detail"><!-- --></A>
292 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
293 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
294 <TD COLSPAN=1><FONT SIZE="+2">
295 <B>Field Detail</B></FONT></TD>
296 </TR>
297 </TABLE>
298
299 <A NAME="log"><!-- --></A><H3>
300 log</H3>
301 <PRE>
302 protected static org.apache.commons.logging.Log <B>log</B></PRE>
303 <DL>
304 <DL>
305 </DL>
306 </DL>
307 <HR>
308
309 <A NAME="DEFAULT_MAX_THREADS"><!-- --></A><H3>
310 DEFAULT_MAX_THREADS</H3>
311 <PRE>
312 public static final int <B>DEFAULT_MAX_THREADS</B></PRE>
313 <DL>
314 <DL>
315 <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.apache.axis.components.threadpool.ThreadPool.DEFAULT_MAX_THREADS">Constant Field Values</A></DL>
316 </DL>
317 <HR>
318
319 <A NAME="threads"><!-- --></A><H3>
320 threads</H3>
321 <PRE>
322 protected java.util.Map <B>threads</B></PRE>
323 <DL>
324 <DL>
325 </DL>
326 </DL>
327 <HR>
328
329 <A NAME="threadcount"><!-- --></A><H3>
330 threadcount</H3>
331 <PRE>
332 protected long <B>threadcount</B></PRE>
333 <DL>
334 <DL>
335 </DL>
336 </DL>
337 <HR>
338
339 <A NAME="_shutdown"><!-- --></A><H3>
340 _shutdown</H3>
341 <PRE>
342 public boolean <B>_shutdown</B></PRE>
343 <DL>
344 <DL>
345 </DL>
346 </DL>
347
348 <!-- ========= CONSTRUCTOR DETAIL ======== -->
349
350 <A NAME="constructor_detail"><!-- --></A>
351 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
352 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
353 <TD COLSPAN=1><FONT SIZE="+2">
354 <B>Constructor Detail</B></FONT></TD>
355 </TR>
356 </TABLE>
357
358 <A NAME="ThreadPool()"><!-- --></A><H3>
359 ThreadPool</H3>
360 <PRE>
361 public <B>ThreadPool</B>()</PRE>
362 <DL>
363 </DL>
364 <HR>
365
366 <A NAME="ThreadPool(int)"><!-- --></A><H3>
367 ThreadPool</H3>
368 <PRE>
369 public <B>ThreadPool</B>(int&nbsp;maxPoolSize)</PRE>
370 <DL>
371 </DL>
372
373 <!-- ============ METHOD DETAIL ========== -->
374
375 <A NAME="method_detail"><!-- --></A>
376 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
377 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
378 <TD COLSPAN=1><FONT SIZE="+2">
379 <B>Method Detail</B></FONT></TD>
380 </TR>
381 </TABLE>
382
383 <A NAME="cleanup()"><!-- --></A><H3>
384 cleanup</H3>
385 <PRE>
386 public void <B>cleanup</B>()
387 throws java.lang.InterruptedException</PRE>
388 <DL>
389 <DD><DL>
390
391 <DT><B>Throws:</B>
392 <DD><CODE>java.lang.InterruptedException</CODE></DL>
393 </DD>
394 </DL>
395 <HR>
396
397 <A NAME="isShutdown()"><!-- --></A><H3>
398 isShutdown</H3>
399 <PRE>
400 public boolean <B>isShutdown</B>()</PRE>
401 <DL>
402 <DD>Returns true if all workers have been shutdown
403 <P>
404 <DD><DL>
405 </DL>
406 </DD>
407 </DL>
408 <HR>
409
410 <A NAME="isShuttingDown()"><!-- --></A><H3>
411 isShuttingDown</H3>
412 <PRE>
413 public boolean <B>isShuttingDown</B>()</PRE>
414 <DL>
415 <DD>Returns true if all workers are in the process of shutting down
416 <P>
417 <DD><DL>
418 </DL>
419 </DD>
420 </DL>
421 <HR>
422
423 <A NAME="getWorkerCount()"><!-- --></A><H3>
424 getWorkerCount</H3>
425 <PRE>
426 public long <B>getWorkerCount</B>()</PRE>
427 <DL>
428 <DD>Returns the total number of currently active workers
429 <P>
430 <DD><DL>
431 </DL>
432 </DD>
433 </DL>
434 <HR>
435
436 <A NAME="addWorker(java.lang.Runnable)"><!-- --></A><H3>
437 addWorker</H3>
438 <PRE>
439 public void <B>addWorker</B>(java.lang.Runnable&nbsp;worker)</PRE>
440 <DL>
441 <DD>Adds a new worker to the pool
442 <P>
443 <DD><DL>
444 </DL>
445 </DD>
446 </DL>
447 <HR>
448
449 <A NAME="interruptAll()"><!-- --></A><H3>
450 interruptAll</H3>
451 <PRE>
452 public void <B>interruptAll</B>()</PRE>
453 <DL>
454 <DD>Forcefully interrupt all workers
455 <P>
456 <DD><DL>
457 </DL>
458 </DD>
459 </DL>
460 <HR>
461
462 <A NAME="shutdown()"><!-- --></A><H3>
463 shutdown</H3>
464 <PRE>
465 public void <B>shutdown</B>()</PRE>
466 <DL>
467 <DD>Forcefully shutdown the pool
468 <P>
469 <DD><DL>
470 </DL>
471 </DD>
472 </DL>
473 <HR>
474
475 <A NAME="safeShutdown()"><!-- --></A><H3>
476 safeShutdown</H3>
477 <PRE>
478 public void <B>safeShutdown</B>()</PRE>
479 <DL>
480 <DD>Forcefully shutdown the pool
481 <P>
482 <DD><DL>
483 </DL>
484 </DD>
485 </DL>
486 <HR>
487
488 <A NAME="awaitShutdown()"><!-- --></A><H3>
489 awaitShutdown</H3>
490 <PRE>
491 public void <B>awaitShutdown</B>()
492 throws java.lang.InterruptedException</PRE>
493 <DL>
494 <DD>Await shutdown of the worker
495 <P>
496 <DD><DL>
497
498 <DT><B>Throws:</B>
499 <DD><CODE>java.lang.InterruptedException</CODE></DL>
500 </DD>
501 </DL>
502 <HR>
503
504 <A NAME="awaitShutdown(long)"><!-- --></A><H3>
505 awaitShutdown</H3>
506 <PRE>
507 public boolean <B>awaitShutdown</B>(long&nbsp;timeout)
508 throws java.lang.InterruptedException</PRE>
509 <DL>
510 <DD>Await shutdown of the worker
511 <P>
512 <DD><DL>
513
514 <DT><B>Throws:</B>
515 <DD><CODE>java.lang.InterruptedException</CODE></DL>
516 </DD>
517 </DL>
518 <HR>
519
520 <A NAME="workerDone(java.lang.Runnable, boolean)"><!-- --></A><H3>
521 workerDone</H3>
522 <PRE>
523 public void <B>workerDone</B>(java.lang.Runnable&nbsp;worker,
524 boolean&nbsp;restart)</PRE>
525 <DL>
526 <DD>Used by MessageWorkers to notify the pool that it is done
527 <P>
528 <DD><DL>
529 </DL>
530 </DD>
531 </DL>
532 <!-- ========= END OF CLASS DATA ========= -->
533 <HR>
534
535
536 <!-- ======= START OF BOTTOM NAVBAR ====== -->
537 <A NAME="navbar_bottom"><!-- --></A>
538 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
539 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
540 <TR>
541 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
542 <A NAME="navbar_bottom_firstrow"><!-- --></A>
543 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
544 <TR ALIGN="center" VALIGN="top">
545 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
546 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
547 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
548 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ThreadPool.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
549 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
550 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
551 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
552 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
553 </TR>
554 </TABLE>
555 </TD>
556 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
557 </EM>
558 </TD>
559 </TR>
560
561 <TR>
562 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
563 &nbsp;PREV CLASS&nbsp;
564 &nbsp;NEXT CLASS</FONT></TD>
565 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
566 <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
567 &nbsp;<A HREF="ThreadPool.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
568 &nbsp;<SCRIPT type="text/javascript">
569 <!--
570 if(window==top) {
571 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
572 }
573 //-->
574 </SCRIPT>
575 <NOSCRIPT>
576 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
577 </NOSCRIPT>
578
579 </FONT></TD>
580 </TR>
581 <TR>
582 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
583 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
584 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
585 DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
586 </TR>
587 </TABLE>
588 <A NAME="skip-navbar_bottom"></A>
589 <!-- ======== END OF BOTTOM NAVBAR ======= -->
590
591 <HR>
592 Copyright © 2005 Apache Web Services Project. All Rights Reserved.
593 </BODY>
594 </HTML>