public class BlockPolicy extends Object implements RejectedExecutionHandler
InterruptedException异常| Constructor and Description |
|---|
BlockPolicy()
构造
|
BlockPolicy(Consumer<Runnable> handlerwhenshutdown)
构造
|
| Modifier and Type | Method and Description |
|---|---|
void |
rejectedExecution(Runnable r,
ThreadPoolExecutor e) |
public BlockPolicy(Consumer<Runnable> handlerwhenshutdown)
handlerwhenshutdown - 线程池关闭后的执行策略public BlockPolicy()
public void rejectedExecution(Runnable r, ThreadPoolExecutor e)
rejectedExecution in interface RejectedExecutionHandlerCopyright © 2025. All rights reserved.