Package com.tnsai.reliability
Record Class Progress.RunCompleted
java.lang.Object
java.lang.Record
com.tnsai.reliability.Progress.RunCompleted
- All Implemented Interfaces:
Progress
- Enclosing interface:
Progress
public static record Progress.RunCompleted(Instant at, int totalSteps, Duration totalDuration)
extends Record
implements Progress
Run reached the end of its step list. Final event for a happy-path run.
-
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
ConstructorsConstructorDescriptionRunCompleted(Instant at, int totalSteps, Duration totalDuration) Creates an instance of aRunCompletedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionat()Returns the value of theatrecord 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.Returns the value of thetotalDurationrecord component.intReturns the value of thetotalStepsrecord component.
-
Constructor Details
-
RunCompleted
Creates an instance of aRunCompletedrecord class.- Parameters:
at- the value for theatrecord componenttotalSteps- the value for thetotalStepsrecord componenttotalDuration- the value for thetotalDurationrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
at
Returns the value of theatrecord component. -
totalSteps
public int totalSteps()Returns the value of thetotalStepsrecord component.- Returns:
- the value of the
totalStepsrecord component
-
totalDuration
Returns the value of thetotalDurationrecord component.- Returns:
- the value of the
totalDurationrecord component
-