@Configuration(proxyBeanMethods=false) @ConditionalOnClass(value={SpannerTemplate.class,org.springframework.boot.actuate.health.HealthIndicator.class}) @ConditionalOnBean(value=SpannerTemplate.class) @ConditionalOnEnabledHealthIndicator(value="spanner") @AutoConfigureBefore(value=org.springframework.boot.actuate.autoconfigure.health.HealthContributorAutoConfiguration.class) @AutoConfigureAfter(value=GcpSpannerAutoConfiguration.class) @EnableConfigurationProperties(value=SpannerHealthIndicatorProperties.class) public class SpannerHealthIndicatorAutoConfiguration extends org.springframework.boot.actuate.autoconfigure.health.CompositeHealthContributorConfiguration<SpannerHealthIndicator,SpannerTemplate>
Auto-configuration
for SpannerHealthIndicator
.Constructor and Description |
---|
SpannerHealthIndicatorAutoConfiguration(SpannerHealthIndicatorProperties spannerHealthProperties) |
Modifier and Type | Method and Description |
---|---|
protected SpannerHealthIndicator |
createIndicator(SpannerTemplate spannerTemplate) |
org.springframework.boot.actuate.health.HealthContributor |
spannerHealthContributor(Map<String,SpannerTemplate> spannerTemplates) |
createComposite
public SpannerHealthIndicatorAutoConfiguration(SpannerHealthIndicatorProperties spannerHealthProperties)
@Bean @ConditionalOnMissingBean(name={"spannerHealthIndicator","spannerHealthContributor"}) public org.springframework.boot.actuate.health.HealthContributor spannerHealthContributor(Map<String,SpannerTemplate> spannerTemplates)
protected SpannerHealthIndicator createIndicator(SpannerTemplate spannerTemplate)
createIndicator
in class org.springframework.boot.actuate.autoconfigure.health.AbstractCompositeHealthContributorConfiguration<org.springframework.boot.actuate.health.HealthContributor,SpannerHealthIndicator,SpannerTemplate>
Copyright © 2021. All rights reserved.