public class BlockPolicy extends Object implements RejectedExecutionHandler
InterruptedException异常
其他系统内置的拒绝策略,见hutool定义的枚举 RejectPolicy 线程拒绝策略枚举.
| Constructor and Description |
|---|
BlockPolicy()
构造
|
BlockPolicy(Consumer<Runnable> handlerwhenshutdown)
构造
|
| Modifier and Type | Method and Description |
|---|---|
void |
rejectedExecution(Runnable r,
ThreadPoolExecutor e) |
public void rejectedExecution(Runnable r, ThreadPoolExecutor e)
rejectedExecution in interface RejectedExecutionHandlerCopyright © 2025. All rights reserved.