Record Class PartitionAssignmentTask
java.lang.Object
java.lang.Record
io.github.jchejarla.springbatch.clustering.polling.PartitionAssignmentTask
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theassignedNoderecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisTransferablerecord component.Returns the value of thejobExecutionIdrecord component.Returns the value of themasterStepExecutionIdrecord component.Returns the value of themasterStepNamerecord component.Returns the value of thestepExecutionIdrecord component.stepName()Returns the value of thestepNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PartitionAssignmentTask
public PartitionAssignmentTask(Long jobExecutionId, String stepName, Long stepExecutionId, Long masterStepExecutionId, boolean isTransferable, String masterStepName, String assignedNode) Creates an instance of aPartitionAssignmentTaskrecord class.- Parameters:
jobExecutionId- the value for thejobExecutionIdrecord componentstepName- the value for thestepNamerecord componentstepExecutionId- the value for thestepExecutionIdrecord componentmasterStepExecutionId- the value for themasterStepExecutionIdrecord componentisTransferable- the value for theisTransferablerecord componentmasterStepName- the value for themasterStepNamerecord componentassignedNode- the value for theassignedNoderecord 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 '=='. -
jobExecutionId
Returns the value of thejobExecutionIdrecord component.- Returns:
- the value of the
jobExecutionIdrecord component
-
stepName
Returns the value of thestepNamerecord component.- Returns:
- the value of the
stepNamerecord component
-
stepExecutionId
Returns the value of thestepExecutionIdrecord component.- Returns:
- the value of the
stepExecutionIdrecord component
-
masterStepExecutionId
Returns the value of themasterStepExecutionIdrecord component.- Returns:
- the value of the
masterStepExecutionIdrecord component
-
isTransferable
public boolean isTransferable()Returns the value of theisTransferablerecord component.- Returns:
- the value of the
isTransferablerecord component
-
masterStepName
Returns the value of themasterStepNamerecord component.- Returns:
- the value of the
masterStepNamerecord component
-
assignedNode
Returns the value of theassignedNoderecord component.- Returns:
- the value of the
assignedNoderecord component
-