@Singleton @Requires(beans=com.mongodb.reactivestreams.client.MongoClient.class) public class MongoHealthIndicator extends Object implements HealthIndicator
HealthIndicator
for MongoDB.Modifier and Type | Field and Description |
---|---|
static String |
NAME
The name to expose details with.
|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
MongoHealthIndicator(BeanContext beanContext,
HealthAggregator<?> healthAggregator,
com.mongodb.reactivestreams.client.MongoClient... mongoClients)
Constructor.
|
public static final String NAME
public MongoHealthIndicator(BeanContext beanContext, HealthAggregator<?> healthAggregator, com.mongodb.reactivestreams.client.MongoClient... mongoClients)
beanContext
- beanContexthealthAggregator
- healthAggregatormongoClients
- The mongo clientspublic Publisher<HealthResult> getResult()
getResult
in interface HealthIndicator
HealthResult
that provides the
information necessary to build a response.