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