206 |
|
* ThreadPoolExecutor#beforeExecute} and {@link |
207 |
|
* ThreadPoolExecutor#afterExecute} methods that are called before and |
208 |
|
* after execution of each task. These can be used to manipulate the |
209 |
< |
* execution environment, for example, reinitializing ThreadLocals, |
209 |
> |
* execution environment; for example, reinitializing ThreadLocals, |
210 |
|
* gathering statistics, or adding log entries. Additionally, method |
211 |
|
* {@link ThreadPoolExecutor#terminated} can be overridden to perform |
212 |
|
* any special processing that needs to be done once the Executor has |
883 |
|
*/ |
884 |
|
public void shutdown() { |
885 |
|
// Fail if caller doesn't have modifyThread permission. We |
886 |
< |
// explicity chack permissions directly because we can't trust |
886 |
> |
// explicitly chack permissions directly because we can't trust |
887 |
|
// implementations of SecurityManager to correctly override |
888 |
|
// the "check access" methods such that our documented |
889 |
|
// security policy is implemented. |