Interface HealthCheckRepository

All Superinterfaces:
HasHealthChecks, HasId
All Known Subinterfaces:
WritableHealthCheckRepository

public interface HealthCheckRepository extends HasId, HasHealthChecks
A repository for health checks.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the check identified by the given id if available.
    boolean
    Set if the checks associated to this repository is enabled or not.
    void
    setEnabled(boolean enabled)
    Set if the checks associated to this repository is enabled or not.

    Methods inherited from interface org.apache.camel.health.HasHealthChecks

    stream

    Methods inherited from interface org.apache.camel.spi.HasId

    getId
  • Method Details

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

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