Package zipkin2

Class CheckResult


  • public final class CheckResult
    extends java.lang.Object
    Answers the question: Are operations on this component likely to succeed?

    Implementations should initialize the component if necessary. It should test a remote connection, or consult a trusted source to derive the result. They should use least resources possible to establish a meaningful result, and be safe to call many times, even concurrently.

    See Also:
    OK
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static CheckResult OK  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Throwable error()
      Present when not ok
      static CheckResult failed​(java.lang.Throwable error)  
      boolean ok()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • failed

        public static CheckResult failed​(java.lang.Throwable error)
      • ok

        public boolean ok()
      • error

        @Nullable
        public java.lang.Throwable error()
        Present when not ok
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object