Record Class WorkerDescriptor
java.lang.Object
java.lang.Record
com.priint.pubserverapi.infra.renderingservice.WorkerDescriptor
- Record Components:
workerId- identifies a workerrenderingServerInfo- information regarding the rendering-server instance this worker is bound to.status- BPMS worker status informationconfig- information about task subscription this worker operates for
public record WorkerDescriptor(String workerId, WorkerDescriptor.RenderingServerInfo renderingServerInfo, WorkerDescriptor.Status status, WorkerDescriptor.Config config)
extends Record
This class models a rendering-service worker.
Each worker is linked with a single thread and a single rendering-server instance.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic enumstatic final recordA set of information obtained from a Rendering Server (InDesign Server or PDF Renderer) Instancestatic final recordstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionWorkerDescriptor(String workerId, WorkerDescriptor.RenderingServerInfo renderingServerInfo, WorkerDescriptor.Status status, WorkerDescriptor.Config config) Creates an instance of aWorkerDescriptorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionconfig()Returns the value of theconfigrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of therenderingServerInforecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.workerId()Returns the value of theworkerIdrecord component.
-
Constructor Details
-
WorkerDescriptor
public WorkerDescriptor(String workerId, WorkerDescriptor.RenderingServerInfo renderingServerInfo, WorkerDescriptor.Status status, WorkerDescriptor.Config config) Creates an instance of aWorkerDescriptorrecord class.- Parameters:
workerId- the value for theworkerIdrecord componentrenderingServerInfo- the value for therenderingServerInforecord componentstatus- the value for thestatusrecord componentconfig- the value for theconfigrecord 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). -
workerId
Returns the value of theworkerIdrecord component.- Returns:
- the value of the
workerIdrecord component
-
renderingServerInfo
Returns the value of therenderingServerInforecord component.- Returns:
- the value of the
renderingServerInforecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
config
Returns the value of theconfigrecord component.- Returns:
- the value of the
configrecord component
-