feat:lark support notice CoreThreadTimeOut

pull/39/head
imyzt 3 years ago
parent 286f13bccc
commit 83e4c9462c

@ -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(),
// 阻塞队列

@ -58,6 +58,13 @@
"tag": "lark_md"
}
},
{
"is_short": true,
"text": {
"content": "** 核心线程超时:** %s",
"tag": "lark_md"
}
},
{
"is_short": true,
"text": {

Loading…
Cancel
Save