feat(ThreadPoolMonitor)

1. the ThreadPoolMonitor use the new api instead of the deprecated api
pull/1108/head
GM-Studio 3 years ago
parent 0aa2c22bed
commit cf66f14edd

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