Interface HealthCheckRegistry

All Known Implementing Classes:
DefaultHealthCheckRegistry

@ParametersAreNonnullByDefault public interface HealthCheckRegistry
Allows HealthChecks to be registered.
Since:
6.6.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the health checks in order of execution.
    void
    register(HealthCheck healthCheck)
    Registers the given health check for later execution.
    void
    Signals to this registry that registration of health checks is complete.
  • Method Details

    • register

      void register(HealthCheck healthCheck)
      Registers the given health check for later execution.
      Parameters:
      healthCheck - the health check to register
    • registrationComplete

      void registrationComplete()
      Signals to this registry that registration of health checks is complete.
    • getAll

      @NonNull Collection<HealthCheck> getAll()
      Returns the health checks in order of execution.
      Returns:
      see above
      Throws:
      IllegalStateException - if registrationComplete() has not been called