RejectedExecutionHandlerpublic static class ThreadPoolExecutor.DiscardPolicy extends Object implements RejectedExecutionHandler
| 构造器 | 说明 |
|---|---|
DiscardPolicy() |
Creates a
DiscardPolicy. |
public void rejectedExecution(Runnable r, ThreadPoolExecutor e)
rejectedExecution 在接口中 RejectedExecutionHandlerr - the runnable task requested to be executede - the executor attempting to execute this task