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 Summary
ConstructorsConstructorDescriptionStatus(String taskId, Long threadId, String documentId, String message, WorkerDescriptor.WorkerStatus workerStatus, WorkerDescriptor.ExternalTaskStatus taskStatus, long inStatusSinceMillis) Creates an instance of aStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedocumentIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of theinStatusSinceMillisrecord component.message()Returns the value of themessagerecord component.taskId()Returns the value of thetaskIdrecord component.Returns the value of thetaskStatusrecord component.threadId()Returns the value of thethreadIdrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theworkerStatusrecord component.
-
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 aStatusrecord class.- Parameters:
taskId- the value for thetaskIdrecord componentthreadId- the value for thethreadIdrecord componentdocumentId- the value for thedocumentIdrecord componentmessage- the value for themessagerecord componentworkerStatus- the value for theworkerStatusrecord componenttaskStatus- the value for thetaskStatusrecord componentinStatusSinceMillis- the value for theinStatusSinceMillisrecord 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 '=='. -
taskId
Returns the value of thetaskIdrecord component.- Returns:
- the value of the
taskIdrecord component
-
threadId
Returns the value of thethreadIdrecord component.- Returns:
- the value of the
threadIdrecord component
-
documentId
Returns the value of thedocumentIdrecord component.- Returns:
- the value of the
documentIdrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
workerStatus
Returns the value of theworkerStatusrecord component.- Returns:
- the value of the
workerStatusrecord component
-
taskStatus
Returns the value of thetaskStatusrecord component.- Returns:
- the value of the
taskStatusrecord component
-
inStatusSinceMillis
public long inStatusSinceMillis()Returns the value of theinStatusSinceMillisrecord component.- Returns:
- the value of the
inStatusSinceMillisrecord component
-