Package su.onno.process
Record Class ProcessTokenSnapshot
java.lang.Object
java.lang.Record
su.onno.process.ProcessTokenSnapshot
public record ProcessTokenSnapshot(UUID id, UUID instanceId, UUID parentTokenId, String branchKey, String stepKey, ProcessNodeType nodeType, ProcessTokenStatus status, Instant dueAt, UUID childInstanceId, Instant enteredAt, Instant updatedAt, int attempt, int version)
extends Record
Inspectable durable execution token, including timer and subprocess waits.
-
Constructor Summary
ConstructorsConstructorDescriptionProcessTokenSnapshot(UUID id, UUID instanceId, UUID parentTokenId, String branchKey, String stepKey, ProcessNodeType nodeType, ProcessTokenStatus status, Instant dueAt, UUID childInstanceId, Instant enteredAt, Instant updatedAt, int attempt, int version) Creates an instance of aProcessTokenSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintattempt()Returns the value of theattemptrecord component.Returns the value of thebranchKeyrecord component.Returns the value of thechildInstanceIdrecord component.dueAt()Returns the value of thedueAtrecord component.Returns the value of theenteredAtrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theinstanceIdrecord component.nodeType()Returns the value of thenodeTyperecord component.Returns the value of theparentTokenIdrecord component.status()Returns the value of thestatusrecord component.stepKey()Returns the value of thestepKeyrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theupdatedAtrecord component.intversion()Returns the value of theversionrecord component.
-
Constructor Details
-
ProcessTokenSnapshot
public ProcessTokenSnapshot(UUID id, UUID instanceId, UUID parentTokenId, String branchKey, String stepKey, ProcessNodeType nodeType, ProcessTokenStatus status, Instant dueAt, UUID childInstanceId, Instant enteredAt, Instant updatedAt, int attempt, int version) Creates an instance of aProcessTokenSnapshotrecord class.- Parameters:
id- the value for theidrecord componentinstanceId- the value for theinstanceIdrecord componentparentTokenId- the value for theparentTokenIdrecord componentbranchKey- the value for thebranchKeyrecord componentstepKey- the value for thestepKeyrecord componentnodeType- the value for thenodeTyperecord componentstatus- the value for thestatusrecord componentdueAt- the value for thedueAtrecord componentchildInstanceId- the value for thechildInstanceIdrecord componententeredAt- the value for theenteredAtrecord componentupdatedAt- the value for theupdatedAtrecord componentattempt- the value for theattemptrecord componentversion- the value for theversionrecord 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 '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
instanceId
Returns the value of theinstanceIdrecord component.- Returns:
- the value of the
instanceIdrecord component
-
parentTokenId
Returns the value of theparentTokenIdrecord component.- Returns:
- the value of the
parentTokenIdrecord component
-
branchKey
Returns the value of thebranchKeyrecord component.- Returns:
- the value of the
branchKeyrecord component
-
stepKey
Returns the value of thestepKeyrecord component.- Returns:
- the value of the
stepKeyrecord component
-
nodeType
Returns the value of thenodeTyperecord component.- Returns:
- the value of the
nodeTyperecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
dueAt
Returns the value of thedueAtrecord component.- Returns:
- the value of the
dueAtrecord component
-
childInstanceId
Returns the value of thechildInstanceIdrecord component.- Returns:
- the value of the
childInstanceIdrecord component
-
enteredAt
Returns the value of theenteredAtrecord component.- Returns:
- the value of the
enteredAtrecord component
-
updatedAt
Returns the value of theupdatedAtrecord component.- Returns:
- the value of the
updatedAtrecord component
-
attempt
public int attempt()Returns the value of theattemptrecord component.- Returns:
- the value of the
attemptrecord component
-
version
public int version()Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-