diff --git a/hippo4j-spring-boot-starter/src/main/java/cn/hippo4j/starter/alarm/lark/LarkSendMessageHandler.java b/hippo4j-spring-boot-starter/src/main/java/cn/hippo4j/starter/alarm/lark/LarkSendMessageHandler.java index 9db286b1..be4eb971 100644 --- a/hippo4j-spring-boot-starter/src/main/java/cn/hippo4j/starter/alarm/lark/LarkSendMessageHandler.java +++ b/hippo4j-spring-boot-starter/src/main/java/cn/hippo4j/starter/alarm/lark/LarkSendMessageHandler.java @@ -1,5 +1,6 @@ package cn.hippo4j.starter.alarm.lark; +import cn.hippo4j.common.enums.EnableEnum; import cn.hippo4j.common.model.InstanceInfo; import cn.hippo4j.common.model.PoolParameterInfo; import cn.hippo4j.starter.alarm.NotifyDTO; @@ -143,6 +144,8 @@ public class LarkSendMessageHandler implements SendMessageHandler { customPool.getCorePoolSize() + " ➲ " + parameter.getCoreSize(), // 最大线程数 customPool.getMaximumPoolSize() + " ➲ " + parameter.getMaxSize(), + // 核心线程超时 + customPool.allowsCoreThreadTimeOut() + " ➲ " + EnableEnum.getBool(parameter.getAllowCoreThreadTimeOut()), // 线程存活时间 customPool.getKeepAliveTime(TimeUnit.SECONDS) + " ➲ " + parameter.getKeepAliveTime(), // 阻塞队列 diff --git a/hippo4j-spring-boot-starter/src/main/resources/properties/lark/notice.json b/hippo4j-spring-boot-starter/src/main/resources/properties/lark/notice.json index 0d4bd4e2..9d85622e 100644 --- a/hippo4j-spring-boot-starter/src/main/resources/properties/lark/notice.json +++ b/hippo4j-spring-boot-starter/src/main/resources/properties/lark/notice.json @@ -58,6 +58,13 @@ "tag": "lark_md" } }, + { + "is_short": true, + "text": { + "content": "** 核心线程超时:** %s", + "tag": "lark_md" + } + }, { "is_short": true, "text": {