public class RejectedTaskPolicyWithReport extends AbstractRejectedExecutionHandler
RejectedRunnable 接口, 那么交给用户去实现拒绝任务的逻辑,
否则以FIFO的方式抛弃队列中一部分现有任务.
jupiter
org.jupiter.common.concurrentlogger, threadPoolName| 构造器和说明 |
|---|
RejectedTaskPolicyWithReport(String threadPoolName) |
RejectedTaskPolicyWithReport(String threadPoolName,
String dumpPrefixName) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
rejectedExecution(Runnable r,
ThreadPoolExecutor e) |
dumpJvmInfopublic RejectedTaskPolicyWithReport(String threadPoolName)
public void rejectedExecution(Runnable r, ThreadPoolExecutor e)
Copyright © 2018. All rights reserved.