Package ch.so.agi.gretl.control.api
Record Class WorkerHeartbeatRequest
java.lang.Object
java.lang.Record
ch.so.agi.gretl.control.api.WorkerHeartbeatRequest
-
Constructor Summary
ConstructorsConstructorDescriptionWorkerHeartbeatRequest(String workerId, List<String> labels, int capacity, int activeRuns) Creates an instance of aWorkerHeartbeatRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theactiveRunsrecord component.intcapacity()Returns the value of thecapacityrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.labels()Returns the value of thelabelsrecord component.final StringtoString()Returns a string representation of this record class.workerId()Returns the value of theworkerIdrecord component.
-
Constructor Details
-
WorkerHeartbeatRequest
Creates an instance of aWorkerHeartbeatRequestrecord class.- Parameters:
workerId- the value for theworkerIdrecord componentlabels- the value for thelabelsrecord componentcapacity- the value for thecapacityrecord componentactiveRuns- the value for theactiveRunsrecord 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 '=='. -
workerId
Returns the value of theworkerIdrecord component.- Returns:
- the value of the
workerIdrecord component
-
labels
Returns the value of thelabelsrecord component.- Returns:
- the value of the
labelsrecord component
-
capacity
public int capacity()Returns the value of thecapacityrecord component.- Returns:
- the value of the
capacityrecord component
-
activeRuns
public int activeRuns()Returns the value of theactiveRunsrecord component.- Returns:
- the value of the
activeRunsrecord component
-