Interface HealthService

All Known Implementing Classes:
DefaultHealthService

public interface HealthService
SPI for obtaining Operaton health information independent of the runtime.

Implementations are discovered via framework-specific dependency injection rather than ServiceLoader. This is intentional: each supported runtime already provides a lifecycle-aware DI mechanism that is preferable to a raw ServiceLoader:

  • Spring Boot – a default implementation is registered via @ConditionalOnMissingBean, allowing applications to supply a custom bean that replaces it.
  • Quarkus – a default implementation is registered as a CDI @Produces bean; CDI alternatives or decorators override it.
Since:
2.1
Author:
Tomasz Korcz
  • Method Summary

    Modifier and Type
    Method
    Description
    Perform a health check and return a HealthResult.