@Singleton @Requires(beans=com.mongodb.reactivestreams.client.MongoClient.class) @Requires(beans=io.micronaut.management.endpoint.health.HealthEndpoint.class) @Requires(property="endpoints.health.mongodb.enabled",notEquals="false") public class MongoHealthIndicator extends Object implements io.micronaut.management.health.indicator.HealthIndicator
HealthIndicator
for MongoDB.Constructor and Description |
---|
MongoHealthIndicator(io.micronaut.context.BeanContext beanContext,
io.micronaut.management.health.aggregator.HealthAggregator<?> healthAggregator,
com.mongodb.reactivestreams.client.MongoClient... mongoClients) |
Modifier and Type | Method and Description |
---|---|
org.reactivestreams.Publisher<io.micronaut.management.health.indicator.HealthResult> |
getResult() |
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