public class BlockPolicy extends Object implements RejectedExecutionHandler
InterruptedException异常public BlockPolicy(Consumer<Runnable> handlerwhenshutdown)
handlerwhenshutdown - 线程池关闭后的执行策略public BlockPolicy()
public void rejectedExecution(Runnable r, ThreadPoolExecutor e)
rejectedExecution 在接口中 RejectedExecutionHandlerCopyright © 2022. All rights reserved.