Interface IHealthCheckRegistry

  • All Known Implementing Classes:
    HealthCheckRegistry

    public interface IHealthCheckRegistry
    Registry for health checks.
    Since:
    8.2.0
    • Method Detail

      • 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.
      • 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.