61 |
|
* |
62 |
|
* <dt>On-demand construction</dt> |
63 |
|
* |
64 |
< |
* <dd> By default, even core threads are initially created and |
64 |
> |
* <dd>By default, even core threads are initially created and |
65 |
|
* started only when new tasks arrive, but this can be overridden |
66 |
|
* dynamically using method {@link #prestartCoreThread} or {@link |
67 |
|
* #prestartAllCoreThreads}. You probably want to prestart threads if |
168 |
|
* |
169 |
|
* <dt>Rejected tasks</dt> |
170 |
|
* |
171 |
< |
* <dd> New tasks submitted in method {@link #execute} will be |
171 |
> |
* <dd>New tasks submitted in method {@link #execute} will be |
172 |
|
* <em>rejected</em> when the Executor has been shut down, and also |
173 |
|
* when the Executor uses finite bounds for both maximum threads and |
174 |
|
* work queue capacity, and is saturated. In either case, the {@code |
219 |
|
* |
220 |
|
* <dt>Queue maintenance</dt> |
221 |
|
* |
222 |
< |
* <dd> Method {@link #getQueue} allows access to the work queue for |
222 |
> |
* <dd>Method {@link #getQueue} allows access to the work queue for |
223 |
|
* purposes of monitoring and debugging. Use of this method for any |
224 |
|
* other purpose is strongly discouraged. Two supplied methods, |
225 |
|
* {@link #remove} and {@link #purge} are available to assist in |
228 |
|
* |
229 |
|
* <dt>Finalization</dt> |
230 |
|
* |
231 |
< |
* <dd> A pool that is no longer referenced in a program <em>AND</em> |
231 |
> |
* <dd>A pool that is no longer referenced in a program <em>AND</em> |
232 |
|
* has no remaining threads will be {@code shutdown} automatically. If |
233 |
|
* you would like to ensure that unreferenced pools are reclaimed even |
234 |
|
* if users forget to call {@link #shutdown}, then you must arrange |