Package com.tnsai.reliability
Record Class Progress.Heartbeat
java.lang.Object
java.lang.Record
com.tnsai.reliability.Progress.Heartbeat
- All Implemented Interfaces:
Progress
- Enclosing interface:
Progress
public static record Progress.Heartbeat(Instant at, String currentStep)
extends Record
implements Progress
Idle "I'm still alive" pulse for runs that perform a long-running
step without intermediate checkpoints. Drives
RunConfig.progressTimeout bookkeeping; an orchestrator
with a 10-minute progress timeout uses heartbeats to assert that
a 30-minute LLM call hasn't silently hung.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.tnsai.reliability.Progress
Progress.CheckpointSaved, Progress.CostUpdate, Progress.Heartbeat, Progress.RunAborted, Progress.RunCompleted, Progress.RunFailed, Progress.StepCompleted, Progress.StepStarted -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionat()Returns the value of theatrecord component.Returns the value of thecurrentSteprecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Heartbeat
Creates an instance of aHeartbeatrecord class.- Parameters:
at- the value for theatrecord componentcurrentStep- the value for thecurrentSteprecord 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
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. -
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). -
at
Returns the value of theatrecord component. -
currentStep
Returns the value of thecurrentSteprecord component.- Returns:
- the value of the
currentSteprecord component
-