Package zipkin2
Class CheckResult
- java.lang.Object
-
- zipkin2.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 okstatic CheckResult
failed(java.lang.Throwable error)
boolean
ok()
java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
-