@Configuration(proxyBeanMethods=false)
@ConditionalOnClass(value={org.springframework.boot.actuate.health.HealthIndicator.class,PubSubTemplate.class})
@ConditionalOnBean(value=PubSubTemplate.class)
@ConditionalOnEnabledHealthIndicator(value="pubsub")
@AutoConfigureBefore(value=org.springframework.boot.actuate.autoconfigure.health.HealthContributorAutoConfiguration.class)
@AutoConfigureAfter(value=GcpPubSubAutoConfiguration.class)
public class PubSubHealthIndicatorAutoConfiguration
extends org.springframework.boot.actuate.autoconfigure.health.CompositeHealthContributorConfiguration<PubSubHealthIndicator,PubSubTemplate>
Auto-configuration for
PubSubHealthIndicator.| Constructor and Description |
|---|
PubSubHealthIndicatorAutoConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.boot.actuate.health.HealthContributor |
pubSubHealthContributor(Map<String,PubSubTemplate> pubSubTemplates) |
createCompositepublic PubSubHealthIndicatorAutoConfiguration()
@Bean
@ConditionalOnMissingBean(name={"pubSubHealthIndicator","pubSubHealthContributor"})
public org.springframework.boot.actuate.health.HealthContributor pubSubHealthContributor(Map<String,PubSubTemplate> pubSubTemplates)
Copyright © 2021. All rights reserved.