Class SpannerHealthIndicatorAutoConfiguration
java.lang.Object
org.springframework.boot.actuate.autoconfigure.health.AbstractCompositeHealthContributorConfiguration<org.springframework.boot.actuate.health.HealthContributor,I,B>
org.springframework.boot.actuate.autoconfigure.health.CompositeHealthContributorConfiguration<SpannerHealthIndicator,SpannerTemplate>
com.google.cloud.spring.autoconfigure.spanner.health.SpannerHealthIndicatorAutoConfiguration
@AutoConfiguration
@ConditionalOnClass({SpannerTemplate.class,org.springframework.boot.actuate.health.HealthIndicator.class})
@ConditionalOnBean(SpannerTemplate.class)
@ConditionalOnEnabledHealthIndicator("spanner")
@AutoConfigureBefore(org.springframework.boot.actuate.autoconfigure.health.HealthContributorAutoConfiguration.class)
@AutoConfigureAfter(GcpSpannerAutoConfiguration.class)
@EnableConfigurationProperties(SpannerHealthIndicatorProperties.class)
public class SpannerHealthIndicatorAutoConfiguration
extends org.springframework.boot.actuate.autoconfigure.health.CompositeHealthContributorConfiguration<SpannerHealthIndicator,SpannerTemplate>
Auto-configuration
for
SpannerHealthIndicator
.- Since:
- 2.0.6
-
Constructor Summary
ConstructorDescriptionSpannerHealthIndicatorAutoConfiguration
(SpannerHealthIndicatorProperties spannerHealthProperties) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.boot.actuate.health.HealthContributor
spannerHealthContributor
(Map<String, SpannerTemplate> spannerTemplates) Methods inherited from class org.springframework.boot.actuate.autoconfigure.health.CompositeHealthContributorConfiguration
createComposite
Methods inherited from class org.springframework.boot.actuate.autoconfigure.health.AbstractCompositeHealthContributorConfiguration
createContributor, createIndicator
-
Constructor Details
-
SpannerHealthIndicatorAutoConfiguration
public SpannerHealthIndicatorAutoConfiguration(SpannerHealthIndicatorProperties spannerHealthProperties)
-
-
Method Details
-
spannerHealthContributor
@Bean @ConditionalOnMissingBean(name={"spannerHealthIndicator","spannerHealthContributor"}) public org.springframework.boot.actuate.health.HealthContributor spannerHealthContributor(Map<String, SpannerTemplate> spannerTemplates)
-