@Singleton @Requires(beans=com.mongodb.reactivestreams.client.MongoClient.class) public class MongoHealthIndicator extends Object implements io.micronaut.management.health.indicator.HealthIndicator
HealthIndicator for MongoDB.| Modifier and Type | Field and Description |
|---|---|
static String |
NAME
The name to expose details with.
|
| Constructor and Description |
|---|
MongoHealthIndicator(io.micronaut.context.BeanContext beanContext,
io.micronaut.management.health.aggregator.HealthAggregator<?> healthAggregator,
com.mongodb.reactivestreams.client.MongoClient... mongoClients)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.reactivestreams.Publisher<io.micronaut.management.health.indicator.HealthResult> |
getResult() |
public static final String NAME
public MongoHealthIndicator(io.micronaut.context.BeanContext beanContext,
io.micronaut.management.health.aggregator.HealthAggregator<?> healthAggregator,
com.mongodb.reactivestreams.client.MongoClient... mongoClients)
beanContext - beanContexthealthAggregator - healthAggregatormongoClients - The mongo clients