@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={HttpClientConfiguration.class,NettyClientConfiguration.class,DiscoveryConfiguration.class,cn.hippo4j.message.config.MessageConfiguration.class,cn.hippo4j.core.config.UtilAutoConfiguration.class}) public class DynamicThreadPoolAutoConfiguration extends Object
| 构造器和说明 |
|---|
DynamicThreadPoolAutoConfiguration() |
@Bean public DynamicThreadPoolBannerHandler threadPoolBannerHandler()
@Bean @ConditionalOnMissingBean @Order(value=-2147483648) public ApplicationContextHolder hippo4JApplicationContextHolder()
@Bean public ClientWorker hippo4jClientWorker(HttpAgent httpAgent, InetUtils hippo4JInetUtils, ServerHealthCheck serverHealthCheck)
@Bean public DynamicThreadPoolService dynamicThreadPoolConfigService(HttpAgent httpAgent, ClientWorker clientWorker, ServerHealthCheck serverHealthCheck, ServerNotifyConfigBuilder notifyConfigBuilder, cn.hippo4j.message.service.Hippo4jBaseSendMessageService hippo4jBaseSendMessageService, DynamicThreadPoolSubscribeConfig dynamicThreadPoolSubscribeConfig)
@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 cn.hippo4j.message.api.NotifyConfigBuilder serverNotifyConfigBuilder(HttpAgent httpAgent, BootstrapProperties properties, cn.hippo4j.message.service.AlarmControlHandler alarmControlHandler)
@Bean public ThreadPoolDynamicRefresh threadPoolDynamicRefresh(ThreadPoolNotifyAlarmHandler threadPoolNotifyAlarmHandler)
@Bean public DynamicThreadPoolSubscribeConfig dynamicThreadPoolSubscribeConfig(ThreadPoolDynamicRefresh threadPoolDynamicRefresh, ClientWorker clientWorker)
@Bean public ThreadPoolNotifyAlarmHandler threadPoolNotifyAlarmHandler(cn.hippo4j.message.service.Hippo4jSendMessageService hippoSendMessageService)
Copyright © 2022. All rights reserved.