Package lv.id.jc.piglatin.actuator
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.boot.actuate.health.Health
apply
(int statusCode) Converts an HTTP status code into a Health object that represents the health of a service.
-
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 interfaceIntFunction<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
-