配置动态线程池报警规则.

pull/10/head
chen.ma 3 years ago
parent d967b8a8d6
commit 10833413db

@ -191,7 +191,7 @@ public class ThreadPoolBuilder implements Builder<ThreadPoolExecutor> {
}
public ThreadPoolBuilder alarmConfig(int isAlarm, int capacityAlarm, int livenessAlarm) {
this.isAlarm = isAlarm == 1 ? true : false;
this.isAlarm = isAlarm == 0 ? true : false;
this.capacityAlarm = capacityAlarm;
this.livenessAlarm = livenessAlarm;
return this;

Loading…
Cancel
Save