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 aTaskStatusHistoryOverview
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theavgDurationMs
record component.Returns the value of theavgExecutionCount
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theexecutionCount
record component.firstRun()
Returns the value of thefirstRun
record component.final int
hashCode()
Returns a hash code value for this object.lastRun()
Returns the value of thelastRun
record component.Returns the value of themaxDurationMs
record component.Returns the value of theminDurationMs
record component.status()
Returns the value of thestatus
record component.taskName()
Returns the value of thetaskName
record component.final String
toString()
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 aTaskStatusHistoryOverview
record class.- Parameters:
taskName
- the value for thetaskName
record componentstatus
- the value for thestatus
record componentexecutionCount
- the value for theexecutionCount
record componentfirstRun
- the value for thefirstRun
record componentlastRun
- the value for thelastRun
record componentmaxDurationMs
- the value for themaxDurationMs
record componentminDurationMs
- the value for theminDurationMs
record componentavgDurationMs
- the value for theavgDurationMs
record componentavgExecutionCount
- the value for theavgExecutionCount
record 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 thetaskName
record component.- Returns:
- the value of the
taskName
record component
-
status
Returns the value of thestatus
record component.- Returns:
- the value of the
status
record component
-
executionCount
Returns the value of theexecutionCount
record component.- Returns:
- the value of the
executionCount
record component
-
firstRun
Returns the value of thefirstRun
record component.- Returns:
- the value of the
firstRun
record component
-
lastRun
Returns the value of thelastRun
record component.- Returns:
- the value of the
lastRun
record component
-
maxDurationMs
Returns the value of themaxDurationMs
record component.- Returns:
- the value of the
maxDurationMs
record component
-
minDurationMs
Returns the value of theminDurationMs
record component.- Returns:
- the value of the
minDurationMs
record component
-
avgDurationMs
Returns the value of theavgDurationMs
record component.- Returns:
- the value of the
avgDurationMs
record component
-
avgExecutionCount
Returns the value of theavgExecutionCount
record component.- Returns:
- the value of the
avgExecutionCount
record component
-