From cac3220d854fc411dcc99ab0096cfdf6421e427c Mon Sep 17 00:00:00 2001 From: "chen.ma" Date: Fri, 31 Dec 2021 07:59:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=85=AC=E5=85=B1=E7=BA=BF?= =?UTF-8?q?=E7=A8=8B=E6=B1=A0=E6=8B=92=E7=BB=9D=E7=AD=96=E7=95=A5=E4=B8=BA?= =?UTF-8?q?=E9=BB=98=E8=AE=A4.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/cn/hippo4j/starter/common/CommonDynamicThreadPool.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/hippo4j-spring-boot-starter/src/main/java/cn/hippo4j/starter/common/CommonDynamicThreadPool.java b/hippo4j-spring-boot-starter/src/main/java/cn/hippo4j/starter/common/CommonDynamicThreadPool.java index 18b2eb43..979e47d4 100644 --- a/hippo4j-spring-boot-starter/src/main/java/cn/hippo4j/starter/common/CommonDynamicThreadPool.java +++ b/hippo4j-spring-boot-starter/src/main/java/cn/hippo4j/starter/common/CommonDynamicThreadPool.java @@ -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();