Class HealthFunction

java.lang.Object
lv.id.jc.piglatin.actuator.HealthFunction
All Implemented Interfaces:
IntFunction<org.springframework.boot.actuate.health.Health>

@Component public class HealthFunction extends Object implements IntFunction<org.springframework.boot.actuate.health.Health>
  • Constructor Details

    • HealthFunction

      public HealthFunction()
  • Method Details

    • apply

      public org.springframework.boot.actuate.health.Health apply(int statusCode)
      Converts an HTTP status code into a Health object that represents the health of a service.
      Specified by:
      apply in interface IntFunction<org.springframework.boot.actuate.health.Health>
      Parameters:
      statusCode - the HTTP status code to be converted
      Returns:
      a Health object representing the health of the service