public class AbortPolicyWithReport extends ThreadPoolExecutor.AbortPolicy
Abort Policy. Log warn info when abort.
任务饱和时, 抛弃任务,抛出异常
| 限定符和类型 | 字段和说明 |
|---|---|
protected static org.slf4j.Logger |
LOGGER |
| 构造器和说明 |
|---|
AbortPolicyWithReport(String threadName) |
public AbortPolicyWithReport(String threadName)
public void rejectedExecution(Runnable r, ThreadPoolExecutor e)
Copyright © 2019. All rights reserved.