Record Class Checkpoint
java.lang.Object
java.lang.Record
org.j7m.middleware.examples.workload.Checkpoint
- Record Components:
checkpointId- checkpoint identifiertaskId- task identifiercreatedAt- creation timepayload- safe checkpoint payload
-
Constructor Summary
ConstructorsConstructorDescriptionCheckpoint(String checkpointId, String taskId, Instant createdAt, String payload) Creates a checkpoint. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecheckpointIdrecord component.Returns the value of thecreatedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.payload()Returns the value of thepayloadrecord component.taskId()Returns the value of thetaskIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Checkpoint
-
-
Method Details
-
toString
-
hashCode
-
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). -
checkpointId
Returns the value of thecheckpointIdrecord component.- Returns:
- the value of the
checkpointIdrecord component
-
taskId
-
createdAt
-
payload
-