Class HealthChecksDependenciesReadyCheck

java.lang.Object
nl.knaw.dans.lib.util.healthcheck.HealthChecksDependenciesReadyCheck
All Implemented Interfaces:
io.dropwizard.lifecycle.Managed, DependenciesReadyCheck

public class HealthChecksDependenciesReadyCheck extends Object implements DependenciesReadyCheck, io.dropwizard.lifecycle.Managed
Implementation of DependenciesReadyCheck that waits until all health checks are healthy.
  • Constructor Details

    • HealthChecksDependenciesReadyCheck

      public HealthChecksDependenciesReadyCheck(io.dropwizard.core.setup.Environment environment, DependenciesReadyCheckConfig config)
  • Method Details

    • start

      public void start() throws Exception
      Specified by:
      start in interface io.dropwizard.lifecycle.Managed
      Throws:
      Exception
    • stop

      public void stop()
      Specified by:
      stop in interface io.dropwizard.lifecycle.Managed
    • waitUntilReady

      public void waitUntilReady(String... checks)
      Description copied from interface: DependenciesReadyCheck
      Wait until all dependencies are ready. This method should block until all dependencies are ready.
      Specified by:
      waitUntilReady in interface DependenciesReadyCheck
      Parameters:
      checks - the names of the checks to wait for; if empty, all checks are waited for