@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) @EnableConfigurationProperties(value=PubSubHealthIndicatorProperties.class) public class PubSubHealthIndicatorAutoConfiguration extends org.springframework.boot.actuate.autoconfigure.health.CompositeHealthContributorConfiguration<PubSubHealthIndicator,PubSubTemplate>
Auto-configuration
for
PubSubHealthIndicator
.Constructor and Description |
---|
PubSubHealthIndicatorAutoConfiguration(PubSubHealthIndicatorProperties pubSubHealthProperties) |
Modifier and Type | Method and Description |
---|---|
protected PubSubHealthIndicator |
createIndicator(PubSubTemplate pubSubTemplate) |
org.springframework.boot.actuate.health.HealthContributor |
pubSubHealthContributor(Map<String,PubSubTemplate> pubSubTemplates) |
createComposite
public PubSubHealthIndicatorAutoConfiguration(PubSubHealthIndicatorProperties pubSubHealthProperties)
@Bean @ConditionalOnMissingBean(name={"pubSubHealthIndicator","pubSubHealthContributor"}) public org.springframework.boot.actuate.health.HealthContributor pubSubHealthContributor(Map<String,PubSubTemplate> pubSubTemplates)
protected PubSubHealthIndicator createIndicator(PubSubTemplate pubSubTemplate)
createIndicator
in class org.springframework.boot.actuate.autoconfigure.health.AbstractCompositeHealthContributorConfiguration<org.springframework.boot.actuate.health.HealthContributor,PubSubHealthIndicator,PubSubTemplate>
Copyright © 2021. All rights reserved.