Package com.github.jpmsilva.jsystemd
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 ClassesModifier and TypeInterfaceDescriptionstatic final recordThe health state of an application. -
Method Summary
-
Method Details
-
health
HealthProvider.Health health()Determines if an application is healthy.- Returns:
- representation of the application
HealthProvider.Healthstate
-