Class ConsulCatalogWatchAutoConfiguration
java.lang.Object
org.springframework.cloud.consul.discovery.ConsulCatalogWatchAutoConfiguration
@Configuration(proxyBeanMethods=false)
@ConditionalOnProperty(value="spring.cloud.consul.discovery.catalog-services-watch.enabled",
matchIfMissing=true)
@ConditionalOnDiscoveryEnabled
@AutoConfigureAfter(ConsulDiscoveryClientConfiguration.class)
@ConditionalOnBean(ConsulDiscoveryProperties.class)
public class ConsulCatalogWatchAutoConfiguration
extends Object
Auto configuration for the catalog watcher.
- Author:
- Tim Ysewyn
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of the catalog watch task scheduler bean. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.scheduling.TaskSchedulerconsulCatalogWatch(ConsulDiscoveryProperties discoveryProperties, com.ecwid.consul.v1.ConsulClient consulClient, org.springframework.scheduling.TaskScheduler taskScheduler)
-
Field Details
-
CATALOG_WATCH_TASK_SCHEDULER_NAME
Name of the catalog watch task scheduler bean.- See Also:
-
-
Constructor Details
-
ConsulCatalogWatchAutoConfiguration
public ConsulCatalogWatchAutoConfiguration()
-
-
Method Details
-
consulCatalogWatch
@Bean @ConditionalOnMissingBean public ConsulCatalogWatch consulCatalogWatch(ConsulDiscoveryProperties discoveryProperties, com.ecwid.consul.v1.ConsulClient consulClient, @Qualifier("catalogWatchTaskScheduler") org.springframework.scheduling.TaskScheduler taskScheduler) -
catalogWatchTaskScheduler
@Bean(name="catalogWatchTaskScheduler") public org.springframework.scheduling.TaskScheduler catalogWatchTaskScheduler()
-