@Configuration @ConditionalOnClass(value=org.springframework.data.redis.connection.RedisConnectionFactory.class) @ConditionalOnBean(value=org.springframework.data.redis.connection.RedisConnectionFactory.class) @ConditionalOnEnabledHealthIndicator(value="redis") @AutoConfigureBefore(value=HealthIndicatorAutoConfiguration.class) @AutoConfigureAfter(value={RedisAutoConfiguration.class,RedisReactiveHealthIndicatorAutoConfiguration.class}) public class RedisHealthIndicatorAutoConfiguration extends CompositeHealthIndicatorConfiguration<RedisHealthIndicator,org.springframework.data.redis.connection.RedisConnectionFactory>
Constructor and Description |
---|
RedisHealthIndicatorAutoConfiguration(Map<String,org.springframework.data.redis.connection.RedisConnectionFactory> redisConnectionFactories) |
Modifier and Type | Method and Description |
---|---|
HealthIndicator |
redisHealthIndicator() |
createHealthIndicator, createHealthIndicator
@Bean @ConditionalOnMissingBean(name="redisHealthIndicator") public HealthIndicator redisHealthIndicator()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.