Skip to content

Commit

Permalink
修复创建动态线程池活跃度和容量报警赋值错误.
Browse files Browse the repository at this point in the history
  • Loading branch information
magestacks committed Nov 29, 2021
1 parent b988b1a commit e4b311f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ private static AbstractBuildThreadPoolTemplate.ThreadPoolInitParam buildInitPara
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);
Expand Down

0 comments on commit e4b311f

Please sign in to comment.