@Configuration(proxyBeanMethods=false)
@ConditionalOnClass(value=org.springframework.cloud.endpoint.RefreshEndpoint.class)
@ConditionalOnProperty(name="spring.cloud.consul.config.watch.enabled",
matchIfMissing=true)
protected static class ConsulConfigAutoConfiguration.ConsulRefreshConfiguration
extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
ConsulRefreshConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
ConfigWatch |
configWatch(ConsulConfigProperties properties,
ConsulConfigIndexes indexes,
com.ecwid.consul.v1.ConsulClient consul,
org.springframework.scheduling.TaskScheduler taskScheduler) |
org.springframework.scheduling.TaskScheduler |
configWatchTaskScheduler() |
@Bean @ConditionalOnBean(value=ConsulConfigIndexes.class) public ConfigWatch configWatch(ConsulConfigProperties properties, ConsulConfigIndexes indexes, com.ecwid.consul.v1.ConsulClient consul, @Qualifier(value="configWatchTaskScheduler") org.springframework.scheduling.TaskScheduler taskScheduler)
@Bean(name="configWatchTaskScheduler") public org.springframework.scheduling.TaskScheduler configWatchTaskScheduler()
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.