Record Class HealingReport.LadderMetadata
java.lang.Object
java.lang.Record
com.shaft.heal.model.HealingReport.LadderMetadata
- Record Components:
rungsAttempted- how many deterministic re-suggestion attempts ran (always at least 1)elapsedMillis- total elapsed time across every rung, in millisecondsbudgetSeconds- the configured hard total budget in seconds;0means the ladder was not engaged (today's one-shot behavior)
- Enclosing class:
HealingReport
public static record HealingReport.LadderMetadata(int rungsAttempted, long elapsedMillis, long budgetSeconds)
extends Record
Re-suggestion ladder metadata (issue #4027): how many deterministic rungs ran and how much
total elapsed time they consumed against the configured hard budget, so the 60-second budget
is observable in the report instead of only enforced silently.
-
Constructor Summary
ConstructorsConstructorDescriptionLadderMetadata(int rungsAttempted, long elapsedMillis, long budgetSeconds) Creates safe ladder metadata. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thebudgetSecondsrecord component.static HealingReport.LadderMetadatadisabled()longReturns the value of theelapsedMillisrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of therungsAttemptedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LadderMetadata
public LadderMetadata(int rungsAttempted, long elapsedMillis, long budgetSeconds) Creates safe ladder metadata.
-
-
Method Details
-
disabled
- Returns:
- metadata for a single-attempt resolution with the ladder not engaged
-
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 with thecomparemethod from their corresponding wrapper classes. -
rungsAttempted
public int rungsAttempted()Returns the value of therungsAttemptedrecord component.- Returns:
- the value of the
rungsAttemptedrecord component
-
elapsedMillis
public long elapsedMillis()Returns the value of theelapsedMillisrecord component.- Returns:
- the value of the
elapsedMillisrecord component
-
budgetSeconds
public long budgetSeconds()Returns the value of thebudgetSecondsrecord component.- Returns:
- the value of the
budgetSecondsrecord component
-