Record Class ManagedSagaUncertainty

java.lang.Object
java.lang.Record
org.j7m.middleware.application.distributed.ManagedSagaUncertainty
Record Components:
sagaId - stable logical run identity
step - stable step identity
idempotencyKey - original external protocol key, retained across takeover
compensation - whether the uncertain effect is compensation rather than a forward step
version - exact observed durable run version
input - persisted original callback input, never a newly invented replay argument

public record ManagedSagaUncertainty(String sagaId, String step, String idempotencyKey, boolean compensation, long version, Object input) extends Record
Immutable identity of an unresolved durable intent; input is a fresh decoded application value.
  • Constructor Details

  • Method Details

    • toString

      public String toString()
      Omits identities and application input from incidental diagnostics.
      Specified by:
      toString in class Record
      Returns:
      fixed safe 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      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.
    • sagaId

      public String sagaId()
      Returns the value of the sagaId record component.
      Returns:
      the value of the sagaId record component
    • step

      public String step()
      Returns the value of the step record component.
      Returns:
      the value of the step record component
    • idempotencyKey

      public String idempotencyKey()
      Returns the value of the idempotencyKey record component.
      Returns:
      the value of the idempotencyKey record component
    • compensation

      public boolean compensation()
      Returns the value of the compensation record component.
      Returns:
      the value of the compensation record component
    • version

      public long version()
      Returns the value of the version record component.
      Returns:
      the value of the version record component
    • input

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