Class Result

  • All Implemented Interfaces:

    
    public final class Result
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Boolean getSuccess() Whether the health check was successful or now.
      final Boolean getHardFailure() If the fail check failed (success=false) whether it was a hard or soft failure.
      final Integer getResponseCode() Optional HTTP response code to use in HTTP responses.
      final Boolean getSticky() Whether the failure is reported only because an earlier failure occurred and the "sticky" mode is enabled.
      final String getMessage() Optional error message.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 null it 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.