update 更新线程池策略说明

feature/model
疯狂的狮子li 3 years ago
parent eecefdc4fa
commit c4f8c1b296

@ -271,7 +271,7 @@ thread-pool:
# 线程池维护线程所允许的空闲时间 # 线程池维护线程所允许的空闲时间
keepAliveSeconds: 300 keepAliveSeconds: 300
# 线程池对拒绝任务(无线程可用)的处理策略 # 线程池对拒绝任务(无线程可用)的处理策略
# CALLER_RUNS_POLICY 等待 # CALLER_RUNS_POLICY 调用方执行
# DISCARD_OLDEST_POLICY 放弃最旧的 # DISCARD_OLDEST_POLICY 放弃最旧的
# DISCARD_POLICY 丢弃 # DISCARD_POLICY 丢弃
# ABORT_POLICY 中止 # ABORT_POLICY 中止

@ -15,7 +15,7 @@ import java.util.concurrent.ThreadPoolExecutor;
@AllArgsConstructor @AllArgsConstructor
public enum ThreadPoolRejectedPolicy { public enum ThreadPoolRejectedPolicy {
CALLER_RUNS_POLICY("等待", ThreadPoolExecutor.CallerRunsPolicy.class), CALLER_RUNS_POLICY("调用方执行", ThreadPoolExecutor.CallerRunsPolicy.class),
DISCARD_OLDEST_POLICY("放弃最旧的", ThreadPoolExecutor.DiscardOldestPolicy.class), DISCARD_OLDEST_POLICY("放弃最旧的", ThreadPoolExecutor.DiscardOldestPolicy.class),
DISCARD_POLICY("丢弃", ThreadPoolExecutor.DiscardPolicy.class), DISCARD_POLICY("丢弃", ThreadPoolExecutor.DiscardPolicy.class),
ABORT_POLICY("中止", ThreadPoolExecutor.AbortPolicy.class); ABORT_POLICY("中止", ThreadPoolExecutor.AbortPolicy.class);

Loading…
Cancel
Save