386 |
|
private volatile long keepAliveTime; |
387 |
|
|
388 |
|
/** |
389 |
< |
* If false (default) core threads stay alive even when idle. If |
390 |
< |
* true, core threads use keepAliveTime to time out waiting for |
391 |
< |
* work. |
389 |
> |
* If false (default), core threads stay alive even when idle. |
390 |
> |
* If true, core threads use keepAliveTime to time out waiting |
391 |
> |
* for work. |
392 |
|
*/ |
393 |
|
private volatile boolean allowCoreThreadTimeOut; |
394 |
|
|
734 |
|
* and is still present in the queue, this task must be removed |
735 |
|
* and rejected to preserve shutdownNow guarantees. Otherwise, |
736 |
|
* this method ensures (unless addThread fails) that there is at |
737 |
< |
* least one live thread to handle this task |
737 |
> |
* least one live thread to handle this task. |
738 |
|
* @param command the task |
739 |
|
*/ |
740 |
|
private void ensureQueuedTaskHandled(Runnable command) { |