Record Class ClusterHealthMonitor.HealthStatus.Unhealthy
java.lang.Object
java.lang.Record
com.loomcache.server.cluster.ClusterHealthMonitor.HealthStatus.Unhealthy
- All Implemented Interfaces:
ClusterHealthMonitor.HealthStatus
- Enclosing interface:
ClusterHealthMonitor.HealthStatus
public static record ClusterHealthMonitor.HealthStatus.Unhealthy(String reason)
extends Record
implements ClusterHealthMonitor.HealthStatus
Node is unhealthy and may be unavailable.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ClusterHealthMonitor.HealthStatus
ClusterHealthMonitor.HealthStatus.Degraded, ClusterHealthMonitor.HealthStatus.Healthy, ClusterHealthMonitor.HealthStatus.Unhealthy -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Unhealthy
Creates an instance of aUnhealthyrecord class.- Parameters:
reason- the value for thereasonrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-