Record Class WorkerDescriptor.Status

java.lang.Object
java.lang.Record
com.priint.pubserverapi.infra.renderingservice.WorkerDescriptor.Status
Enclosing class:
WorkerDescriptor

public static record WorkerDescriptor.Status(String taskId, Long threadId, String documentId, String message, WorkerDescriptor.WorkerStatus workerStatus, WorkerDescriptor.ExternalTaskStatus taskStatus, long inStatusSinceMillis) extends Record
  • Constructor Details

    • Status

      public Status(String taskId, Long threadId, String documentId, String message, WorkerDescriptor.WorkerStatus workerStatus, WorkerDescriptor.ExternalTaskStatus taskStatus, long inStatusSinceMillis)
      Creates an instance of a Status record class.
      Parameters:
      taskId - the value for the taskId record component
      threadId - the value for the threadId record component
      documentId - the value for the documentId record component
      message - the value for the message record component
      workerStatus - the value for the workerStatus record component
      taskStatus - the value for the taskStatus record component
      inStatusSinceMillis - the value for the inStatusSinceMillis 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • taskId

      public String taskId()
      Returns the value of the taskId record component.
      Returns:
      the value of the taskId record component
    • threadId

      public Long threadId()
      Returns the value of the threadId record component.
      Returns:
      the value of the threadId record component
    • documentId

      public String documentId()
      Returns the value of the documentId record component.
      Returns:
      the value of the documentId record component
    • message

      public String message()
      Returns the value of the message record component.
      Returns:
      the value of the message record component
    • workerStatus

      public WorkerDescriptor.WorkerStatus workerStatus()
      Returns the value of the workerStatus record component.
      Returns:
      the value of the workerStatus record component
    • taskStatus

      Returns the value of the taskStatus record component.
      Returns:
      the value of the taskStatus record component
    • inStatusSinceMillis

      public long inStatusSinceMillis()
      Returns the value of the inStatusSinceMillis record component.
      Returns:
      the value of the inStatusSinceMillis record component