修复创建动态线程池活跃度和容量报警赋值错误.

pull/12/head
chen.ma 3 years ago
parent b988b1a4e7
commit e4b311f9cf

@ -308,7 +308,7 @@ public class ThreadPoolBuilder implements Builder<ThreadPoolExecutor> {
if (builder.isDynamicPool) {
String threadPoolId = Optional.ofNullable(builder.threadPoolId).orElse(builder.threadNamePrefix);
initParam.setThreadPoolId(threadPoolId);
ThreadPoolAlarm threadPoolAlarm = new ThreadPoolAlarm(builder.isAlarm, builder.capacityAlarm, builder.livenessAlarm);
ThreadPoolAlarm threadPoolAlarm = new ThreadPoolAlarm(builder.isAlarm, builder.livenessAlarm, builder.capacityAlarm);
initParam.setThreadPoolAlarm(threadPoolAlarm);
initParam.setWaitForTasksToCompleteOnShutdown(builder.waitForTasksToCompleteOnShutdown);
initParam.setAwaitTerminationMillis(builder.awaitTerminationMillis);

Loading…
Cancel
Save