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 Details

    • CLIENT_DEFAULT

      public static final String CLIENT_DEFAULT
      See Also:
    • CLIENT_DEFAULT_REACTIVE

      public static final String CLIENT_DEFAULT_REACTIVE
      See Also:
    • mongoConfig

      @Inject MongoConfig mongoConfig
    • mongoClient

      @Any @Inject io.quarkus.arc.InjectableInstance<com.mongodb.client.MongoClient> mongoClient
    • reactiveMongoClients

      @Any @Inject io.quarkus.arc.InjectableInstance<ReactiveMongoClient> reactiveMongoClients
  • Constructor Details

    • MongoHealthCheck

      public MongoHealthCheck()
  • Method Details

    • init

      @PostConstruct void init()
    • call

      public org.eclipse.microprofile.health.HealthCheckResponse call()
      Specified by:
      call in interface org.eclipse.microprofile.health.HealthCheck