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