Class RabbitMQHealthIndicator

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

@Requires(property="endpoints.health.rabbitmq.enabled",notEquals="false") @Requires(beans=io.micronaut.management.endpoint.health.HealthEndpoint.class) @Singleton public class RabbitMQHealthIndicator extends io.micronaut.management.health.indicator.AbstractHealthIndicator<Map<String,Object>>
A HealthIndicator for RabbitMQ.
Since:
1.1.0
Author:
James Kleeh
  • 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
    RabbitMQHealthIndicator(com.rabbitmq.client.Connection connection)
    Default constructor.
    RabbitMQHealthIndicator(List<com.rabbitmq.client.Connection> connections)
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Map<String,Object>
    getDetails(com.rabbitmq.client.Connection connection)
     
    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

    • RabbitMQHealthIndicator

      public RabbitMQHealthIndicator(com.rabbitmq.client.Connection connection)
      Default constructor.
      Parameters:
      connection - The connection to query for details
    • RabbitMQHealthIndicator

      @Inject public RabbitMQHealthIndicator(List<com.rabbitmq.client.Connection> connections)
      Default constructor.
      Parameters:
      connections - The connections 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>>
    • getDetails

      protected Map<String,Object> getDetails(com.rabbitmq.client.Connection connection)
      Parameters:
      connection - The connection
      Returns:
      The health details for the connection
    • getName

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