Package io.micronaut.rabbitmq.health
Class 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
ConstructorDescriptionRabbitMQHealthIndicator
(com.rabbitmq.client.Connection connection) Default constructor.RabbitMQHealthIndicator
(List<com.rabbitmq.client.Connection> connections) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetDetails
(com.rabbitmq.client.Connection connection) protected String
getName()
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
Default constructor.- Parameters:
connections
- The connections to query for details
-
-
Method Details
-
getHealthInformation
-
getDetails
- Parameters:
connection
- The connection- Returns:
- The health details for the connection
-
getName
-