Record Class SagaExecution
java.lang.Object
java.lang.Record
org.j7m.middleware.api.saga.SagaExecution
- Record Components:
executionId- durable execution identifierdefinitionId- definition being executedstate- current durable execution statetransactionContext- redacted transaction context summarysteps- immutable safe step summaries in definition order
- All Implemented Interfaces:
Serializable
public record SagaExecution(SagaExecutionId executionId, SagaDefinitionId definitionId, SagaExecutionState state, TransactionContextSummary transactionContext, List<SagaStepExecution> steps)
extends Record
implements Serializable
Safe saga execution status.
This public status object is redacted. It contains a
TransactionContextSummary instead of the full internal
TransactionContext and never exposes command payload bytes.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSagaExecution(SagaExecutionId executionId, SagaDefinitionId definitionId, SagaExecutionState state, TransactionContextSummary transactionContext, List<SagaStepExecution> steps) Creates an immutable execution status. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedefinitionIdrecord 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.steps()Returns the value of thestepsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransactionContextrecord component.
-
Constructor Details
-
SagaExecution
public SagaExecution(SagaExecutionId executionId, SagaDefinitionId definitionId, SagaExecutionState state, TransactionContextSummary transactionContext, List<SagaStepExecution> steps) Creates an immutable execution status.
-
-
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). -
executionId
Returns the value of theexecutionIdrecord component.- Returns:
- the value of the
executionIdrecord component
-
definitionId
Returns the value of thedefinitionIdrecord component.- Returns:
- the value of the
definitionIdrecord component
-
state
-
transactionContext
Returns the value of thetransactionContextrecord component.- Returns:
- the value of the
transactionContextrecord component
-
steps
-