Package io.micronaut.nats.health
Class 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
ConstructorDescriptionNatsHealthIndicator
(io.nats.client.Connection connection) Default constructor. -
Method Summary
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