Interface HealthProvider

All Known Implementing Classes:
ActuatorHealthStatusProvider, AvailabilityStatusProvider, DelayableHealthProvider, FileDescriptorStatusProvider, HikariStatusProvider, ThreadStatusProvider

public interface HealthProvider
A health provider can be used to control the watchdog heartbeat. An unhealthy state does not trigger the heartbeat.

Health providers only report the health: they must not drive the lifecycle of the application with Systemd.ready(), Systemd.stopping() or Systemd.close(), as they are called from the periodic watchdog heartbeats, which Systemd.close() waits for.

Author:
Christian Lorenz
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final record 
    The health state of an application.
  • Method Summary

    Modifier and Type
    Method
    Description
    Determines if an application is healthy.