Package io.quarkus.mongodb.health
Class MongoHealthCheck
java.lang.Object
io.quarkus.mongodb.health.MongoHealthCheck
- All Implemented Interfaces:
org.eclipse.microprofile.health.HealthCheck
@Readiness
@ApplicationScoped
public class MongoHealthCheck
extends Object
implements org.eclipse.microprofile.health.HealthCheck
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final String(package private) io.quarkus.arc.InjectableInstance<com.mongodb.client.MongoClient> (package private) MongoConfig(package private) io.quarkus.arc.InjectableInstance<ReactiveMongoClient> -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
CLIENT_DEFAULT
- See Also:
-
CLIENT_DEFAULT_REACTIVE
- See Also:
-
mongoConfig
-
mongoClient
@Any @Inject io.quarkus.arc.InjectableInstance<com.mongodb.client.MongoClient> mongoClient -
reactiveMongoClients
-
-
Constructor Details
-
MongoHealthCheck
public MongoHealthCheck()
-
-
Method Details
-
init
@PostConstruct void init() -
call
public org.eclipse.microprofile.health.HealthCheckResponse call()- Specified by:
callin interfaceorg.eclipse.microprofile.health.HealthCheck
-