Class Health


  • public class Health
    extends java.lang.Object
    Represents the "Health", by holding a list of HealthChecks and their 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()
      • Health

        public Health​(java.util.List<org.apache.commons.lang3.tuple.Pair<HealthCheck,​Response>> responses)
    • Method Detail

      • isSuccess

        public boolean isSuccess()
      • getWorst

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

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