feat(ThreadPoolMonitor) (#1108)

1. the ThreadPoolMonitor use the new api instead of the deprecated api
pull/1113/head
SquirrelChen 3 years ago committed by LiXuemin
parent fb5c6c9c3f
commit 87602c929a

@ -79,8 +79,8 @@ public class ThreadPoolMonitorExecutor implements ApplicationRunner, DisposableB
// Execute dynamic thread pool monitoring component.
collectScheduledExecutor.scheduleWithFixedDelay(
this::scheduleRunnable,
properties.getInitialDelay(),
properties.getCollectInterval(),
monitor.getInitialDelay(),
monitor.getCollectInterval(),
TimeUnit.MILLISECONDS);
if (GlobalThreadPoolManage.getThreadPoolNum() > 0) {
log.info("Dynamic thread pool: [{}]. The dynamic thread pool starts data collection and reporting.", getThreadPoolNum());

Loading…
Cancel
Save