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

    Fields
    Modifier and Type
    Field
    Description
    static 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

    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)
    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 Type
    Method
    Description
    org.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

      public static final String 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 - beanContext
      executorService - executor service
      healthAggregator - healthAggregator
      redisClients - redisClients
      redisClusterClients - 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 - beanContext
      healthAggregator - healthAggregator
      redisClients - redisClients
      redisClusterClients - redisClusterClients
  • Method Details

    • getResult

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