Package zipkin2
Class CheckResult
- java.lang.Object
-
- zipkin2.CheckResult
-
public final class CheckResult extends java.lang.ObjectAnswers 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 CheckResultOK
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Throwableerror()Present when not okstatic CheckResultfailed(java.lang.Throwable error)booleanok()java.lang.StringtoString()
-
-
-
Field Detail
-
OK
public static final CheckResult OK
-
-
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:
toStringin classjava.lang.Object
-
-