Record Class TaskStatusHistoryOverview
java.lang.Object
java.lang.Record
org.sterl.spring.persistent_tasks.api.TaskStatusHistoryOverview
public record TaskStatusHistoryOverview(String taskName, TriggerStatus status, Long executionCount, OffsetDateTime firstRun, OffsetDateTime lastRun, Number maxDurationMs, Number minDurationMs, Number avgDurationMs, Number avgExecutionCount)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTaskStatusHistoryOverview(String taskName, TriggerStatus status, Long executionCount, OffsetDateTime firstRun, OffsetDateTime lastRun, Number maxDurationMs, Number minDurationMs, Number avgDurationMs, Number avgExecutionCount) Creates an instance of aTaskStatusHistoryOverviewrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theavgDurationMsrecord component.Returns the value of theavgExecutionCountrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexecutionCountrecord component.firstRun()Returns the value of thefirstRunrecord component.final inthashCode()Returns a hash code value for this object.lastRun()Returns the value of thelastRunrecord component.Returns the value of themaxDurationMsrecord component.Returns the value of theminDurationMsrecord component.status()Returns the value of thestatusrecord component.taskName()Returns the value of thetaskNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TaskStatusHistoryOverview
public TaskStatusHistoryOverview(String taskName, TriggerStatus status, Long executionCount, OffsetDateTime firstRun, OffsetDateTime lastRun, Number maxDurationMs, Number minDurationMs, Number avgDurationMs, Number avgExecutionCount) Creates an instance of aTaskStatusHistoryOverviewrecord class.- Parameters:
taskName- the value for thetaskNamerecord componentstatus- the value for thestatusrecord componentexecutionCount- the value for theexecutionCountrecord componentfirstRun- the value for thefirstRunrecord componentlastRun- the value for thelastRunrecord componentmaxDurationMs- the value for themaxDurationMsrecord componentminDurationMs- the value for theminDurationMsrecord componentavgDurationMs- the value for theavgDurationMsrecord componentavgExecutionCount- the value for theavgExecutionCountrecord 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). -
taskName
Returns the value of thetaskNamerecord component.- Returns:
- the value of the
taskNamerecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
executionCount
Returns the value of theexecutionCountrecord component.- Returns:
- the value of the
executionCountrecord component
-
firstRun
Returns the value of thefirstRunrecord component.- Returns:
- the value of the
firstRunrecord component
-
lastRun
Returns the value of thelastRunrecord component.- Returns:
- the value of the
lastRunrecord component
-
maxDurationMs
Returns the value of themaxDurationMsrecord component.- Returns:
- the value of the
maxDurationMsrecord component
-
minDurationMs
Returns the value of theminDurationMsrecord component.- Returns:
- the value of the
minDurationMsrecord component
-
avgDurationMs
Returns the value of theavgDurationMsrecord component.- Returns:
- the value of the
avgDurationMsrecord component
-
avgExecutionCount
Returns the value of theavgExecutionCountrecord component.- Returns:
- the value of the
avgExecutionCountrecord component
-