java 队列已满_java – ThreadPoolExecutor当队列已满时阻塞?
在一些非常狭窄的情况下,您可以实现一个java.util.concurrent.RejectedExecutionHandler,它可以满足您的需要。RejectedExecutionHandler block = new RejectedExecutionHandler() {rejectedExecution(Runnable r, ThreadPoolExecutor executor) {...