Record Class NodeLoop.Health
java.lang.Object
java.lang.Record
ai.badmonkey.agentspaces.peering.node.NodeLoop.Health
- Record Components:
state- the statereasons- one sentence per cause, empty when OK
- Enclosing class:
NodeLoop
public static record NodeLoop.Health(NodeLoop.HealthState state, List<String> reasons)
extends Record
The loop's health and why.
-
Constructor Summary
ConstructorsConstructorDescriptionHealth(NodeLoop.HealthState state, List<String> reasons) Copies the reasons. -
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.reasons()Returns the value of thereasonsrecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Health
Copies the reasons.
-
-
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). -
state
-
reasons
-