Class SystemdNotifyActuatorHealthProvider

java.lang.Object
com.github.jpmsilva.jsystemd.SystemdNotifyActuatorHealthProvider
All Implemented Interfaces:
HealthProvider, SystemdNotifyStatusProvider

public class SystemdNotifyActuatorHealthProvider
extends Object
implements SystemdNotifyStatusProvider, HealthProvider
Implementation of HealthProvider that provides application health based on Spring Boot Actuator Health Indicators.
Author:
Christian Lorenz
  • Constructor Details

    • SystemdNotifyActuatorHealthProvider

      public SystemdNotifyActuatorHealthProvider​(@NotNull @NotNull List<org.springframework.boot.actuate.health.HealthIndicator> healthIndicators, @NotNull @NotNull Set<org.springframework.boot.actuate.health.Status> unhealthyStatusCodes)
      Creates a new instance using the provided HealthIndicator and Status.

      HealthIndicator are used to determine the health of the application, whereas Status indicate which status should be considered as unhealthy.

      Parameters:
      healthIndicators - Spring Boot Actuator Health Indicators
      unhealthyStatusCodes - list of status codes considered as unhealthy
  • Method Details