Hystrix thread pool monitoring optimization

pull/284/head
shiming-stars-lk 2 years ago committed by shining-stars-lk
parent c1e5b4a617
commit 45fd3d846e

@ -24,7 +24,7 @@ import org.springframework.context.annotation.Configuration;
* thread pool adapter extra auto configuration. * thread pool adapter extra auto configuration.
*/ */
@Configuration(proxyBeanMethods = false) @Configuration(proxyBeanMethods = false)
public class ThreadPoolAdapterExtraAutoConfiguration { public class ThreadPoolAdapterScheduleAutoConfiguration {
@Bean @Bean
public ThreadPoolAdapterScheduler threadPoolAdapterExtra() { public ThreadPoolAdapterScheduler threadPoolAdapterExtra() {

@ -1 +1 @@
org.springframework.boot.autoconfigure.EnableAutoConfiguration=cn.hippo4j.adapter.base.ThreadPoolAdapterExtraAutoConfiguration org.springframework.boot.autoconfigure.EnableAutoConfiguration=cn.hippo4j.adapter.base.ThreadPoolAdapterScheduleAutoConfiguration

@ -18,7 +18,7 @@
package cn.hippo4j.springboot.starter.adapter.hystrix; package cn.hippo4j.springboot.starter.adapter.hystrix;
import cn.hippo4j.adapter.base.ThreadPoolAdapterScheduler; import cn.hippo4j.adapter.base.ThreadPoolAdapterScheduler;
import cn.hippo4j.adapter.base.ThreadPoolAdapterExtraAutoConfiguration; import cn.hippo4j.adapter.base.ThreadPoolAdapterScheduleAutoConfiguration;
import cn.hippo4j.adapter.hystrix.HystrixThreadPoolAdapter; import cn.hippo4j.adapter.hystrix.HystrixThreadPoolAdapter;
import cn.hippo4j.common.config.ApplicationContextHolder; import cn.hippo4j.common.config.ApplicationContextHolder;
import org.springframework.boot.autoconfigure.AutoConfigureAfter; import org.springframework.boot.autoconfigure.AutoConfigureAfter;
@ -33,7 +33,7 @@ import org.springframework.context.annotation.Configuration;
* @create: 2022-07-15 * @create: 2022-07-15
**/ **/
@Configuration(proxyBeanMethods = false) @Configuration(proxyBeanMethods = false)
@AutoConfigureAfter(ThreadPoolAdapterExtraAutoConfiguration.class) @AutoConfigureAfter(ThreadPoolAdapterScheduleAutoConfiguration.class)
public class HystrixAdapterAutoConfiguration { public class HystrixAdapterAutoConfiguration {
@Bean @Bean

Loading…
Cancel
Save