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 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 a TaskStatusHistoryOverview record class.
      Parameters:
      taskName - the value for the taskName record component
      status - the value for the status record component
      executionCount - the value for the executionCount record component
      firstRun - the value for the firstRun record component
      lastRun - the value for the lastRun record component
      maxDurationMs - the value for the maxDurationMs record component
      minDurationMs - the value for the minDurationMs record component
      avgDurationMs - the value for the avgDurationMs record component
      avgExecutionCount - the value for the avgExecutionCount record component
  • Method Details

    • 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 Objects::equals(Object,Object).
      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.
    • taskName

      public String taskName()
      Returns the value of the taskName record component.
      Returns:
      the value of the taskName record component
    • status

      public TriggerStatus status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • executionCount

      public Long executionCount()
      Returns the value of the executionCount record component.
      Returns:
      the value of the executionCount record component
    • firstRun

      public OffsetDateTime firstRun()
      Returns the value of the firstRun record component.
      Returns:
      the value of the firstRun record component
    • lastRun

      public OffsetDateTime lastRun()
      Returns the value of the lastRun record component.
      Returns:
      the value of the lastRun record component
    • maxDurationMs

      public Number maxDurationMs()
      Returns the value of the maxDurationMs record component.
      Returns:
      the value of the maxDurationMs record component
    • minDurationMs

      public Number minDurationMs()
      Returns the value of the minDurationMs record component.
      Returns:
      the value of the minDurationMs record component
    • avgDurationMs

      public Number avgDurationMs()
      Returns the value of the avgDurationMs record component.
      Returns:
      the value of the avgDurationMs record component
    • avgExecutionCount

      public Number avgExecutionCount()
      Returns the value of the avgExecutionCount record component.
      Returns:
      the value of the avgExecutionCount record component