Record Class SagaCancelResult
java.lang.Object
java.lang.Record
org.j7m.middleware.api.saga.SagaCancelResult
- Record Components:
executionId- execution affected by the cancellation requeststate- state after cancellation evaluationaccepted- whether the cancellation request was accepted
- All Implemented Interfaces:
Serializable
public record SagaCancelResult(SagaExecutionId executionId, SagaExecutionState state, boolean accepted)
extends Record
implements Serializable
Cancellation result.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSagaCancelResult(SagaExecutionId executionId, SagaExecutionState state, boolean accepted) Creates a validated result. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccepted()Returns the value of theacceptedrecord 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
-
SagaCancelResult
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
-
accepted
-