Class NatsHealthIndicator

java.lang.Object
io.micronaut.management.health.indicator.AbstractHealthIndicator<Map<String,Object>>
io.micronaut.nats.health.NatsHealthIndicator
All Implemented Interfaces:
io.micronaut.core.order.Ordered, io.micronaut.management.health.indicator.HealthIndicator

@Requires(property="endpoints.health.nats.enabled",notEquals="false") @Requires(beans=io.micronaut.management.endpoint.health.HealthEndpoint.class) @Singleton public class NatsHealthIndicator extends io.micronaut.management.health.indicator.AbstractHealthIndicator<Map<String,Object>>
A HealthIndicator for Nats.
Since:
1.0.0
Author:
jgrimm
  • Field Summary

    Fields inherited from class io.micronaut.management.health.indicator.AbstractHealthIndicator

    executorService, healthStatus

    Fields inherited from interface io.micronaut.core.order.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Constructor Summary

    Constructors
    Constructor
    Description
    NatsHealthIndicator(io.nats.client.Connection connection)
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Map<String,Object>
     
    protected String
     

    Methods inherited from class io.micronaut.management.health.indicator.AbstractHealthIndicator

    getHealthResult, getResult, setExecutorService

    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
  • Constructor Details

    • NatsHealthIndicator

      public NatsHealthIndicator(io.nats.client.Connection connection)
      Default constructor.
      Parameters:
      connection - The connection to query for details
  • Method Details

    • getHealthInformation

      protected Map<String,Object> getHealthInformation()
      Specified by:
      getHealthInformation in class io.micronaut.management.health.indicator.AbstractHealthIndicator<Map<String,Object>>
    • getName

      protected String getName()
      Specified by:
      getName in class io.micronaut.management.health.indicator.AbstractHealthIndicator<Map<String,Object>>