feat(ThreadPoolMonitor) (#1108)

1. the ThreadPoolMonitor use the new api instead of the deprecated api
pull/1116/head
SquirrelChen 3 years ago committed by GitHub
parent 0aa2c22bed
commit 1f20678cb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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