@Configuration @ConditionalOnBean(value=cn.hippo4j.core.enable.MarkerConfiguration.Marker.class) @EnableConfigurationProperties(value=BootstrapProperties.class) @ConditionalOnProperty(prefix="spring.dynamic.thread-pool", value="enable", matchIfMissing=true, havingValue="true") @ImportAutoConfiguration(value={cn.hippo4j.springboot.starter.adapter.web.WebAdapterConfiguration.class,NettyClientConfiguration.class,DiscoveryConfiguration.class,cn.hippo4j.message.config.MessageConfiguration.class,cn.hippo4j.core.config.UtilAutoConfiguration.class}) public class DynamicThreadPoolAutoConfiguration extends Object
NOTE:
cn.hippo4j.springboot.starter.config.DynamicThreadPoolAutoConfiguration is used in the
hippo4j-spring-boot-starter-adapter-hystrix module to determine the condition, see
cn.hippo4j.springboot.starter.adapter.hystrix.HystrixAdapterAutoConfiguration, please
note the subsequent modification.
| 构造器和说明 |
|---|
DynamicThreadPoolAutoConfiguration() |
@Bean public DynamicThreadPoolBannerHandler threadPoolBannerHandler(org.springframework.beans.factory.ObjectProvider<org.springframework.boot.info.BuildProperties> buildProperties)
@Bean @ConditionalOnMissingBean @Order(value=-2147483648) public ApplicationContextHolder hippo4jApplicationContextHolder()
@Bean public ClientWorker hippo4jClientWorker(HttpAgent httpAgent, InetUtils hippo4jInetUtils, ServerHealthCheck serverHealthCheck, DynamicThreadPoolBannerHandler dynamicThreadPoolBannerHandlers, ClientShutdown hippo4jClientShutdown)
@Bean public DynamicThreadPoolService dynamicThreadPoolConfigService(HttpAgent httpAgent, ServerHealthCheck serverHealthCheck, ServerModeNotifyConfigBuilder serverModeNotifyConfigBuilder, Hippo4jBaseSendMessageService hippo4jBaseSendMessageService, DynamicThreadPoolSubscribeConfig dynamicThreadPoolSubscribeConfig)
@Bean public AdaptedThreadPoolDestroyPostProcessor adaptedThreadPoolDestroyPostProcessor(org.springframework.context.ApplicationContext applicationContext)
@Bean public DynamicThreadPoolPostProcessor threadPoolBeanPostProcessor(HttpAgent httpAgent, ApplicationContextHolder hippo4jApplicationContextHolder, DynamicThreadPoolSubscribeConfig dynamicThreadPoolSubscribeConfig)
@Bean @ConditionalOnMissingBean(value=cn.hippo4j.common.api.ThreadDetailState.class) public ThreadDetailState baseThreadDetailStateHandler()
@Bean public WebThreadPoolRunStateController poolRunStateController(ThreadPoolRunStateHandler threadPoolRunStateHandler, ThreadDetailState threadDetailState)
@Bean @ConditionalOnMissingBean public MessageSender messageSender(HttpAgent httpAgent)
@Bean public ReportingEventExecutor reportingEventExecutor(BootstrapProperties properties, MessageSender messageSender, ServerHealthCheck serverHealthCheck)
@Bean public ServerHealthCheck httpScheduledHealthCheck(HttpAgent httpAgent)
@Bean public RunTimeInfoCollector runTimeInfoCollector()
@Bean public ThreadPoolAdapterController threadPoolAdapterController(InetUtils hippo4jInetUtils)
@Bean public ThreadPoolAdapterBeanContainer threadPoolAdapterBeanContainer()
@Bean public ApplicationContentPostProcessor applicationContentPostProcessor()
@Bean public WebThreadPoolController webThreadPoolController(cn.hippo4j.adapter.web.WebThreadPoolHandlerChoose webThreadPoolServiceChoose)
@Bean public ThreadPoolAdapterRegister threadPoolAdapterRegister(HttpAgent httpAgent, InetUtils hippo4jInetUtils)
@Bean public NotifyConfigBuilder serverNotifyConfigBuilder(HttpAgent httpAgent, BootstrapProperties properties, AlarmControlHandler alarmControlHandler)
@Bean @ConditionalOnMissingBean public ThreadPoolCheckAlarm defaultThreadPoolCheckAlarmHandler(Hippo4jSendMessageService hippo4jSendMessageService)
@Bean @ConditionalOnMissingBean public ThreadPoolConfigChange defaultThreadPoolConfigChangeHandler(Hippo4jSendMessageService hippo4jSendMessageService)
@Bean public ThreadPoolDynamicRefresh threadPoolDynamicRefresh(ThreadPoolConfigChange threadPoolConfigChange)
@Bean public DynamicThreadPoolSubscribeConfig dynamicThreadPoolSubscribeConfig(ThreadPoolDynamicRefresh threadPoolDynamicRefresh, ClientWorker clientWorker)
@Bean public HttpAgent httpAgent(BootstrapProperties properties)
@Bean public ThreadPoolPluginRegisterPostProcessor threadPoolPluginRegisterPostProcessor()
Copyright © 2023. All rights reserved.