@AutoConfiguration(after=ApplicationAvailabilityAutoConfiguration.class) public class AvailabilityHealthContributorAutoConfiguration extends Object
Constructor and Description |
---|
AvailabilityHealthContributorAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
LivenessStateHealthIndicator |
livenessStateHealthIndicator(ApplicationAvailability applicationAvailability) |
ReadinessStateHealthIndicator |
readinessStateHealthIndicator(ApplicationAvailability applicationAvailability) |
public AvailabilityHealthContributorAutoConfiguration()
@Bean @ConditionalOnMissingBean(name="livenessStateHealthIndicator") @ConditionalOnProperty(prefix="management.health.livenessstate", name="enabled", havingValue="true") public LivenessStateHealthIndicator livenessStateHealthIndicator(ApplicationAvailability applicationAvailability)
@Bean @ConditionalOnMissingBean(name="readinessStateHealthIndicator") @ConditionalOnProperty(prefix="management.health.readinessstate", name="enabled", havingValue="true") public ReadinessStateHealthIndicator readinessStateHealthIndicator(ApplicationAvailability applicationAvailability)