Record Class SagaStartResult
java.lang.Object
java.lang.Record
org.j7m.middleware.api.saga.SagaStartResult
- Record Components:
executionId- durable execution identifierstate- initial or recovered execution stateduplicate- whether an idempotency key matched an existing execution
- All Implemented Interfaces:
Serializable
public record SagaStartResult(SagaExecutionId executionId, SagaExecutionState state, boolean duplicate)
extends Record
implements Serializable
Start result for a saga execution.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSagaStartResult(SagaExecutionId executionId, SagaExecutionState state, boolean duplicate) Creates a validated result. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theduplicaterecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexecutionIdrecord component.final inthashCode()Returns a hash code value for this object.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SagaStartResult
Creates a validated result.
-
-
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. -
executionId
Returns the value of theexecutionIdrecord component.- Returns:
- the value of the
executionIdrecord component
-
state
-
duplicate
-