@Configuration(proxyBeanMethods=false) @EnableConfigurationProperties(value=ThreadPoolMonitorProperties.class) public class ThreadPoolMonitorAutoConfiguration extends Object
| 构造器和说明 |
|---|
ThreadPoolMonitorAutoConfiguration() |
| 限定符和类型 | 方法和说明 |
|---|---|
AlertService |
defaultAlertService()
配置默认的告警服务实现。
|
ThreadPoolMonitorEnhancer |
threadPoolMonitorEnhancer()
配置线程池监控增强器。
|
ThreadPoolTaskMonitor |
threadPoolTaskMonitor(AlertService alertService,
ThreadPoolMonitorProperties poolMonitorProperties)
配置线程池监控任务。
|
@ConditionalOnMissingBean @Bean public AlertService defaultAlertService()
@Bean
@ConditionalOnProperty(prefix="relaxed.thread-pool.monitor",
name="monitorEnabled",
havingValue="true")
public ThreadPoolTaskMonitor threadPoolTaskMonitor(AlertService alertService,
ThreadPoolMonitorProperties poolMonitorProperties)
alertService - 告警服务poolMonitorProperties - 线程池监控配置属性@Bean
@ConditionalOnProperty(prefix="relaxed.thread-pool.monitor",
name="adjustPoolNumEnabled",
havingValue="true")
public ThreadPoolMonitorEnhancer threadPoolMonitorEnhancer()
Copyright © 2025. All rights reserved.