public record HealthCheckResult(HealthStatus status, String unhealthyMessage, Throwable unhealthyThrowable, JsonNode info)
extends Record
-
Constructor Summary
ConstructorDescriptionHealthCheckResult
(HealthStatus status, String unhealthyMessage, Throwable unhealthyThrowable, JsonNode info) Creates an instance of aHealthCheckResult
record 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 boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.JsonNode
info()
Returns the value of theinfo
record component.status()
Returns the value of thestatus
record component.final String
toString()
Returns a string representation of this record class.Returns the value of theunhealthyMessage
record component.Returns the value of theunhealthyThrowable
record 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 aHealthCheckResult
record class.- Parameters:
status
- the value for thestatus
record componentunhealthyMessage
- the value for theunhealthyMessage
record componentunhealthyThrowable
- the value for theunhealthyThrowable
record componentinfo
- the value for theinfo
record 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 thestatus
record component.- Returns:
- the value of the
status
record component
-
unhealthyMessage
Returns the value of theunhealthyMessage
record component.- Returns:
- the value of the
unhealthyMessage
record component
-
unhealthyThrowable
Returns the value of theunhealthyThrowable
record component.- Returns:
- the value of the
unhealthyThrowable
record component
-
info
Returns the value of theinfo
record component.- Returns:
- the value of the
info
record component
-