Interface HealthCheckRepository

  • All Superinterfaces:
    HasId

    public interface HealthCheckRepository
    extends HasId
    A repository for health checks.
    • Method Detail

      • isEnabled

        boolean isEnabled()
        Set if the checks associated to this repository is enabled or not.
      • setEnabled

        void setEnabled​(boolean enabled)
        Set if the checks associated to this repository is enabled or not.
      • addConfiguration

        void addConfiguration​(String id,
                              HealthCheckConfiguration configuration)
        Adds a health check configuration
        Parameters:
        id - the health check id (can use patterns)
        configuration - the configuration
      • getCheck

        default Optional<HealthCheck> getCheck​(String id)
        Returns the check identified by the given id if available.