public interface RejectedExecutionHandler
当提交的任务被拒绝时的处理策略,修改自JDK的或者说Netty的拒绝策略。
- 作者:
- wjybxx date 2023/4/7
-
方法概要
-
方法详细资料
-
rejected
Method that may be invoked by aEventLoopwhenexecutecannot accept a task. This may occur when no more threads or queue slots are available because their bounds would be exceeded, or upon shutdown of the Executor.In the absence of other alternatives, the method may throw an unchecked
RejectedExecutionException, which will be propagated to the caller ofexecute.- 参数:
r- the runnable task requested to be executedeventLoop- the executor attempting to execute this task- 抛出:
RejectedExecutionException- if there is no remedy
-