Interface HealthCheckRegistry


public interface HealthCheckRegistry
Registry for health checks.
Since:
8.2.0
  • Method Details

    • getInstance

      static HealthCheckRegistry getInstance()
    • register

      void register(String name, IHealthCheck check)
      Register a health check.
      Parameters:
      name - The name of the health check.
      check - The health check.
    • unregister

      void unregister(String name)
      Unregister a health check.
      Parameters:
      name - The name of the health check.
    • getHealthCheckThreadPoolExecutor

      ScheduledThreadPoolExecutor getHealthCheckThreadPoolExecutor()
      Gets the health check thread pool executor.
      Returns:
      the health check thread pool executor.
    • getHealthCheck

      IHealthCheck getHealthCheck(String name)
      Gets a health check.
      Parameters:
      name - The name of the health check.
    • runHealthCheck

      IHealthCheck.Result runHealthCheck(String name)
      Run a health check.
      Parameters:
      name - The name of the health check.
      Returns:
      The result of the health check.