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 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 given beanType retrieved from the given beanFactory.
      Parameters:
      beanFactory - the bean factory from which the beans are retrieved
      beanType - 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)