Package org.jitsi.health
Class Result
-
- All Implemented Interfaces:
public final class Result
-
-
Field Summary
Fields Modifier and Type Field Description private final Booleansuccessprivate final BooleanhardFailureprivate final IntegerresponseCodeprivate final Booleanstickyprivate final Stringmessage
-
Method Summary
Modifier and Type Method Description final BooleangetSuccess()Whether the health check was successful or now. final BooleangetHardFailure()If the fail check failed (success=false) whether it was a hard or soft failure. final IntegergetResponseCode()Optional HTTP response code to use in HTTP responses. final BooleangetSticky()Whether the failure is reported only because an earlier failure occurred and the "sticky" mode is enabled. final StringgetMessage()Optional error message. -
-
Method Detail
-
getSuccess
final Boolean getSuccess()
Whether the health check was successful or now.
-
getHardFailure
final Boolean getHardFailure()
If the fail check failed (success=false) whether it was a hard or soft failure.
-
getResponseCode
final Integer getResponseCode()
Optional HTTP response code to use in HTTP responses. When set to
nullit is chosen automatically based on #success and #hardFailure
-
getSticky
final Boolean getSticky()
Whether the failure is reported only because an earlier failure occurred and the "sticky" mode is enabled.
-
getMessage
final String getMessage()
Optional error message.
-
-
-
-