Merge pull request #39 from imyzt/develop

feat:lark support notice CoreThreadTimeOut
pull/40/head
longtai 3 years ago committed by GitHub
commit 4e507e6bc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,5 +1,6 @@
package cn.hippo4j.starter.alarm.lark; package cn.hippo4j.starter.alarm.lark;
import cn.hippo4j.common.enums.EnableEnum;
import cn.hippo4j.common.model.InstanceInfo; import cn.hippo4j.common.model.InstanceInfo;
import cn.hippo4j.common.model.PoolParameterInfo; import cn.hippo4j.common.model.PoolParameterInfo;
import cn.hippo4j.starter.alarm.NotifyDTO; import cn.hippo4j.starter.alarm.NotifyDTO;
@ -143,6 +144,8 @@ public class LarkSendMessageHandler implements SendMessageHandler {
customPool.getCorePoolSize() + " ➲ " + parameter.getCoreSize(), customPool.getCorePoolSize() + " ➲ " + parameter.getCoreSize(),
// 最大线程数 // 最大线程数
customPool.getMaximumPoolSize() + " ➲ " + parameter.getMaxSize(), customPool.getMaximumPoolSize() + " ➲ " + parameter.getMaxSize(),
// 核心线程超时
customPool.allowsCoreThreadTimeOut() + " ➲ " + EnableEnum.getBool(parameter.getAllowCoreThreadTimeOut()),
// 线程存活时间 // 线程存活时间
customPool.getKeepAliveTime(TimeUnit.SECONDS) + " ➲ " + parameter.getKeepAliveTime(), customPool.getKeepAliveTime(TimeUnit.SECONDS) + " ➲ " + parameter.getKeepAliveTime(),
// 阻塞队列 // 阻塞队列

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

Loading…
Cancel
Save