Class DataRedisHealthContributorAutoConfiguration
java.lang.Object
org.springframework.boot.health.autoconfigure.contributor.CompositeHealthContributorConfiguration<DataRedisHealthIndicator, org.springframework.data.redis.connection.RedisConnectionFactory>
org.springframework.boot.data.redis.autoconfigure.health.DataRedisHealthContributorAutoConfiguration
@AutoConfiguration(after={DataRedisAutoConfiguration.class,DataRedisReactiveHealthContributorAutoConfiguration.class})
@ConditionalOnClass({org.springframework.data.redis.connection.RedisConnectionFactory.class,HealthIndicator.class,ConditionalOnEnabledHealthIndicator.class})
@ConditionalOnBean(org.springframework.data.redis.connection.RedisConnectionFactory.class)
@ConditionalOnEnabledHealthIndicator("redis")
public final class DataRedisHealthContributorAutoConfiguration
extends CompositeHealthContributorConfiguration<DataRedisHealthIndicator, org.springframework.data.redis.connection.RedisConnectionFactory>
- Since:
- 4.0.0
- Author:
- Christian Dupuis, Richard Santana, Stephane Nicoll, Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptionprotected final HealthContributorcreateContributor(Map<String, org.springframework.data.redis.connection.RedisConnectionFactory> beans) protected final HealthContributorcreateContributor(ConfigurableListableBeanFactory beanFactory, Class<org.springframework.data.redis.connection.RedisConnectionFactory> beanType) Creates a composite contributor from the beans of the givenbeanTyperetrieved from the givenbeanFactory.protected DataRedisHealthIndicatorcreateIndicator(org.springframework.data.redis.connection.RedisConnectionFactory bean) Methods inherited from class CompositeHealthContributorConfiguration
createComposite
-
Method Details
-
createContributor
protected final HealthContributor createContributor(ConfigurableListableBeanFactory beanFactory, Class<org.springframework.data.redis.connection.RedisConnectionFactory> beanType) Creates a composite contributor from the beans of the givenbeanTyperetrieved from the givenbeanFactory.- Parameters:
beanFactory- the bean factory from which the beans are retrievedbeanType- the type of the beans that are retrieved- Returns:
- the contributor
-
createContributor
protected final HealthContributor createContributor(Map<String, org.springframework.data.redis.connection.RedisConnectionFactory> beans) -
createIndicator
protected DataRedisHealthIndicator createIndicator(org.springframework.data.redis.connection.RedisConnectionFactory bean)
-