Record Class ManagedSagaDecision
java.lang.Object
java.lang.Record
org.j7m.middleware.application.distributed.ManagedSagaDecision
- Record Components:
outcome- unresolved, established success or established no-effect failureresult- established data result, encoded using the exact persisted step's declared schema
public record ManagedSagaDecision(ManagedSagaDecision.Outcome outcome, Object result)
extends Record
Independently established reconciliation proposal. This data never grants administrative rights.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDistinguishes evidence from uncertainty; exceptions alone are not no-effect evidence. -
Constructor Summary
ConstructorsConstructorDescriptionManagedSagaDecision(ManagedSagaDecision.Outcome outcome, Object result) Requires an explicit outcome. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.outcome()Returns the value of theoutcomerecord component.result()Returns the value of theresultrecord component.toString()Omits application data from diagnostics.
-
Constructor Details
-
ManagedSagaDecision
Requires an explicit outcome.- Throws:
NullPointerException- for a missing outcome
-
-
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). -
outcome
-
result
-