- java.lang.Object
-
- net.morimekta.tiny.server.http.TinyHealth
-
public final class TinyHealth extends Object
Handle health and readiness for Tiny Server.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTinyHealth.HealthCheckInterface for checking the healthiness of a service.static interfaceTinyHealth.ReadyCheckInterface for checking the readiness of a service.static classTinyHealth.ResultThe healthiness result.static classTinyHealth.StatusThe actual healthiness status.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TinyHealth.Resultok(String message)static TinyHealth.Resultunhealthy(String message)
-
-
-
Method Detail
-
ok
public static TinyHealth.Result ok(String message)
- Parameters:
message- Healthy service message. Optional.- Returns:
- The OK result.
-
unhealthy
public static TinyHealth.Result unhealthy(String message)
- Parameters:
message- The unhealthy service message. Required.- Returns:
- The UNHEALTHY service.
-
-