Record Class SagaStepExecution
java.lang.Object
java.lang.Record
org.j7m.middleware.api.saga.SagaStepExecution
- Record Components:
stepId- step identifierstate- current durable step stateattempts- number of action attempts recorded for the stepreasonCode- latest stable reason code
- All Implemented Interfaces:
Serializable
public record SagaStepExecution(SagaStepId stepId, SagaStepState state, int attempts, String reasonCode)
extends Record
implements Serializable
Safe saga step execution summary.
The summary is a status view. It does not expose command payloads, callback objects, or credential-like metadata.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSagaStepExecution(SagaStepId stepId, SagaStepState state, int attempts, String reasonCode) Creates a validated summary. -
Method Summary
Modifier and TypeMethodDescriptionintattempts()Returns the value of theattemptsrecord 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 thereasonCoderecord component.state()Returns the value of thestaterecord component.stepId()Returns the value of thestepIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SagaStepExecution
Creates a validated summary.
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
stepId
-
state
-
attempts
-
reasonCode
Returns the value of thereasonCoderecord component.- Returns:
- the value of the
reasonCoderecord component
-