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 failure
result - 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.
  • Constructor Details

  • Method Details

    • toString

      public String toString()
      Omits application data from diagnostics.
      Specified by:
      toString in class Record
      Returns:
      bounded outcome label
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • outcome

      public ManagedSagaDecision.Outcome outcome()
      Returns the value of the outcome record component.
      Returns:
      the value of the outcome record component
    • result

      public Object result()
      Returns the value of the result record component.
      Returns:
      the value of the result record component