public record HealthCheckResult(HealthStatus status, String unhealthyMessage, Throwable unhealthyThrowable, JsonNode info)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionHealthCheckResult(HealthStatus status, String unhealthyMessage, Throwable unhealthyThrowable, JsonNode info) Creates an instance of aHealthCheckResultrecord class.HealthCheckResult(JsonNode info) HealthCheckResult(String unhealthyMessage) HealthCheckResult(String unhealthyMessage, JsonNode info) HealthCheckResult(String unhealthyMessage, Throwable unhealthyThrowable) HealthCheckResult(String unhealthyMessage, Throwable unhealthyThrowable, JsonNode info) HealthCheckResult(Throwable unhealthyThrowable, JsonNode info) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.JsonNodeinfo()Returns the value of theinforecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theunhealthyMessagerecord component.Returns the value of theunhealthyThrowablerecord component.
-
Constructor Details
-
HealthCheckResult
public HealthCheckResult() -
HealthCheckResult
-
HealthCheckResult
-
HealthCheckResult
-
HealthCheckResult
-
HealthCheckResult
-
HealthCheckResult
-
HealthCheckResult
public HealthCheckResult(HealthStatus status, String unhealthyMessage, Throwable unhealthyThrowable, JsonNode info) Creates an instance of aHealthCheckResultrecord class.- Parameters:
status- the value for thestatusrecord componentunhealthyMessage- the value for theunhealthyMessagerecord componentunhealthyThrowable- the value for theunhealthyThrowablerecord componentinfo- the value for theinforecord component
-
-
Method Details
-
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
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). -
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
unhealthyMessage
Returns the value of theunhealthyMessagerecord component.- Returns:
- the value of the
unhealthyMessagerecord component
-
unhealthyThrowable
Returns the value of theunhealthyThrowablerecord component.- Returns:
- the value of the
unhealthyThrowablerecord component
-
info
Returns the value of theinforecord component.- Returns:
- the value of the
inforecord component
-