Class RedisHealthIndicator
java.lang.Object
io.micronaut.configuration.lettuce.health.RedisHealthIndicator
- All Implemented Interfaces:
io.micronaut.core.order.Ordered
,io.micronaut.management.health.indicator.HealthIndicator
@Singleton
@Requires(classes=io.micronaut.management.health.indicator.HealthIndicator.class) @Requires(property="redis.health.enabled",defaultValue="true",notEquals="false")
public class RedisHealthIndicator
extends Object
implements io.micronaut.management.health.indicator.HealthIndicator
A Health Indicator for Redis.
- Since:
- 1.0
- Author:
- graemerocher
-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.slf4j.Logger
static final String
Default name to use for health indication for Redis.Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorDescriptionRedisHealthIndicator
(io.micronaut.context.BeanContext beanContext, io.micronaut.management.health.aggregator.HealthAggregator<?> healthAggregator, io.lettuce.core.RedisClient[] redisClients, io.lettuce.core.cluster.RedisClusterClient[] redisClusterClients) Deprecated.RedisHealthIndicator
(io.micronaut.context.BeanContext beanContext, ExecutorService executorService, io.micronaut.management.health.aggregator.HealthAggregator<?> healthAggregator, io.lettuce.core.RedisClient[] redisClients, io.lettuce.core.cluster.RedisClusterClient[] redisClusterClients) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionorg.reactivestreams.Publisher<io.micronaut.management.health.indicator.HealthResult>
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.core.order.Ordered
getOrder
-
Field Details
-
LOG
public static final org.slf4j.Logger LOG -
NAME
Default name to use for health indication for Redis.- See Also:
-
-
Constructor Details
-
RedisHealthIndicator
@Inject public RedisHealthIndicator(io.micronaut.context.BeanContext beanContext, @Named("io") ExecutorService executorService, io.micronaut.management.health.aggregator.HealthAggregator<?> healthAggregator, io.lettuce.core.RedisClient[] redisClients, io.lettuce.core.cluster.RedisClusterClient[] redisClusterClients) Constructor.- Parameters:
beanContext
- beanContextexecutorService
- executor servicehealthAggregator
- healthAggregatorredisClients
- redisClientsredisClusterClients
- redisClusterClients
-
RedisHealthIndicator
@Deprecated public RedisHealthIndicator(io.micronaut.context.BeanContext beanContext, io.micronaut.management.health.aggregator.HealthAggregator<?> healthAggregator, io.lettuce.core.RedisClient[] redisClients, io.lettuce.core.cluster.RedisClusterClient[] redisClusterClients) Deprecated.Constructor.- Parameters:
beanContext
- beanContexthealthAggregator
- healthAggregatorredisClients
- redisClientsredisClusterClients
- redisClusterClients
-
-
Method Details
-
getResult
public org.reactivestreams.Publisher<io.micronaut.management.health.indicator.HealthResult> getResult()- Specified by:
getResult
in interfaceio.micronaut.management.health.indicator.HealthIndicator
-