Class Health


  • public class Health
    extends java.lang.Object
    Represents the "Health", by holding a list of Responses. It allows accessing the responses and also provides some helper methods (e.g. to get the worst response).
    Author:
    mvrueden
    • Constructor Detail

      • Health

        public Health()
    • Method Detail

      • isSuccess

        public boolean isSuccess()
      • getWorst

        public java.util.Optional<org.apache.commons.lang3.tuple.Pair<HealthCheck,​Response>> getWorst()
      • setError

        public void setError​(java.lang.String errorMessage)
      • getErrorMessage

        public java.lang.String getErrorMessage()
      • getResponses

        public java.util.List<org.apache.commons.lang3.tuple.Pair<HealthCheck,​Response>> getResponses()