Class 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 java.lang.Object
    implements io.micronaut.management.health.indicator.HealthIndicator
    A Health Indicator for Redis.
    Since:
    1.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.slf4j.Logger LOG  
      static java.lang.String NAME
      Default name to use for health indication for Redis.
      • Fields inherited from interface io.micronaut.core.order.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • Constructor Summary

      Constructors 
      Constructor Description
      RedisHealthIndicator​(io.micronaut.context.BeanContext beanContext, io.micronaut.management.health.aggregator.HealthAggregator<?> healthAggregator, io.lettuce.core.RedisClient[] redisClients, io.lettuce.core.cluster.RedisClusterClient[] redisClusterClients)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.reactivestreams.Publisher<io.micronaut.management.health.indicator.HealthResult> getResult()  
      • 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 Detail

      • LOG

        public static final org.slf4j.Logger LOG
      • NAME

        public static final java.lang.String NAME
        Default name to use for health indication for Redis.
        See Also:
        Constant Field Values
    • Constructor Detail

      • RedisHealthIndicator

        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)
        Constructor.
        Parameters:
        beanContext - beanContext
        healthAggregator - healthAggregator
        redisClients - redisClients
        redisClusterClients - redisClusterClients
    • Method Detail

      • getResult

        public org.reactivestreams.Publisher<io.micronaut.management.health.indicator.HealthResult> getResult()
        Specified by:
        getResult in interface io.micronaut.management.health.indicator.HealthIndicator