智能客服
你问我答,随时在线为你解决问题

























public interface RejectedExecutionHandler |
Since:
1.5Modifier and Type | Method | Description |
|---|---|---|
void | rejectedExecution(Runnable r, ThreadPoolExecutor executor) | Method that may be invoked by a ThreadPoolExecutor when ThreadPoolExecutor#execute cannot accept a task. |
void rejectedExecution(Runnable r, ThreadPoolExecutor executor)
Method that may be invoked by a ThreadPoolExecutor when ThreadPoolExecutor#execute cannot 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 of execute.
Parameters:
Parameter Name | Parameter Description |
|---|---|
r | the runnable task requested to be executed |
executor | the executor attempting to execute this task |
Throws:
Throw Name | Throw Description |
|---|---|
if there is no remedy |
智能客服
你问我答,随时在线为你解决问题
合作咨询
我们的专家服务团队将竭诚为您提供专业的合作咨询服务
解决方案
精准高效的一站式服务支持,助力开发者商业成功