Package io.camunda.zeebe.util.health
Record Class HealthIssue
java.lang.Object
java.lang.Record
io.camunda.zeebe.util.health.HealthIssue
A health issue contains information about the cause for unhealthy/dead components. It can either
be a string message, a
Throwable or another HealthReport.-
Constructor Summary
ConstructorsConstructorDescriptionHealthIssue(String message, Throwable throwable, HealthReport cause) Creates an instance of aHealthIssuerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncause()Returns the value of thecauserecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.static HealthIssueof(HealthReport cause) static HealthIssuestatic HealthIssueReturns the value of thethrowablerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HealthIssue
Creates an instance of aHealthIssuerecord class.- Parameters:
message- the value for themessagerecord componentthrowable- the value for thethrowablerecord componentcause- the value for thecauserecord component
-
-
Method Details
-
of
-
of
-
of
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
throwable
Returns the value of thethrowablerecord component.- Returns:
- the value of the
throwablerecord component
-
cause
Returns the value of thecauserecord component.- Returns:
- the value of the
causerecord component
-