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