修改公共线程池拒绝策略为默认.

pull/84/head
chen.ma 3 years ago
parent bb4fbb11fb
commit cac3220d85

@ -2,7 +2,6 @@ package cn.hippo4j.starter.common;
import cn.hippo4j.starter.core.DynamicThreadPoolExecutor;
import cn.hippo4j.starter.toolkit.thread.QueueTypeEnum;
import cn.hippo4j.starter.toolkit.thread.RejectedPolicies;
import cn.hippo4j.starter.toolkit.thread.ThreadPoolBuilder;
import java.util.concurrent.TimeUnit;
@ -21,7 +20,6 @@ public class CommonDynamicThreadPool {
.threadFactory(threadPoolId)
.poolThreadSize(3, 5)
.keepAliveTime(1000L, TimeUnit.SECONDS)
.rejected(RejectedPolicies.runsOldestTaskPolicy())
.alarmConfig(1, 80, 80)
.workQueue(QueueTypeEnum.RESIZABLE_LINKED_BLOCKING_QUEUE, 512)
.build();

Loading…
Cancel
Save