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 milliseconds
budgetSeconds - the configured hard total budget in seconds; 0 means 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 Details

    • LadderMetadata

      public LadderMetadata(int rungsAttempted, long elapsedMillis, long budgetSeconds)
      Creates safe ladder metadata.
  • Method Details

    • disabled

      public static HealingReport.LadderMetadata disabled()
      Returns:
      metadata for a single-attempt resolution with the ladder not engaged
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • rungsAttempted

      public int rungsAttempted()
      Returns the value of the rungsAttempted record component.
      Returns:
      the value of the rungsAttempted record component
    • elapsedMillis

      public long elapsedMillis()
      Returns the value of the elapsedMillis record component.
      Returns:
      the value of the elapsedMillis record component
    • budgetSeconds

      public long budgetSeconds()
      Returns the value of the budgetSeconds record component.
      Returns:
      the value of the budgetSeconds record component