Class PubSubHealthIndicatorAutoConfiguration
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<PubSubHealthIndicator,PubSubTemplate>
com.google.cloud.spring.autoconfigure.pubsub.health.PubSubHealthIndicatorAutoConfiguration
@AutoConfiguration
@ConditionalOnClass({org.springframework.boot.actuate.health.HealthIndicator.class,PubSubTemplate.class})
@ConditionalOnBean(PubSubTemplate.class)
@ConditionalOnEnabledHealthIndicator("pubsub")
@AutoConfigureBefore(org.springframework.boot.actuate.autoconfigure.health.HealthContributorAutoConfiguration.class)
@AutoConfigureAfter(GcpPubSubAutoConfiguration.class)
@EnableConfigurationProperties(PubSubHealthIndicatorProperties.class)
public class PubSubHealthIndicatorAutoConfiguration
extends org.springframework.boot.actuate.autoconfigure.health.CompositeHealthContributorConfiguration<PubSubHealthIndicator,PubSubTemplate>
Auto-configuration
for PubSubHealthIndicator
.- Since:
- 1.2.2
-
Constructor Summary
ConstructorDescriptionPubSubHealthIndicatorAutoConfiguration
(PubSubHealthIndicatorProperties pubSubHealthProperties) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.boot.actuate.health.HealthContributor
pubSubHealthContributor
(Map<String, PubSubTemplate> pubSubTemplates) 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
-
PubSubHealthIndicatorAutoConfiguration
public PubSubHealthIndicatorAutoConfiguration(PubSubHealthIndicatorProperties pubSubHealthProperties)
-
-
Method Details
-
pubSubHealthContributor
@Bean @ConditionalOnMissingBean(name={"pubSubHealthIndicator","pubSubHealthContributor"}) public org.springframework.boot.actuate.health.HealthContributor pubSubHealthContributor(Map<String, PubSubTemplate> pubSubTemplates)
-