Record Class ManagedSagaUncertainty
java.lang.Object
java.lang.Record
org.j7m.middleware.application.distributed.ManagedSagaUncertainty
- Record Components:
sagaId- stable logical run identitystep- stable step identityidempotencyKey- original external protocol key, retained across takeovercompensation- whether the uncertain effect is compensation rather than a forward stepversion- exact observed durable run versioninput- persisted original callback input, never a newly invented replay argument
-
Constructor Summary
ConstructorsConstructorDescriptionManagedSagaUncertainty(String sagaId, String step, String idempotencyKey, boolean compensation, long version, Object input) Validates required identity without invoking application data methods. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecompensationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theidempotencyKeyrecord component.input()Returns the value of theinputrecord component.sagaId()Returns the value of thesagaIdrecord component.step()Returns the value of thesteprecord component.toString()Omits identities and application input from incidental diagnostics.longversion()Returns the value of theversionrecord component.
-
Constructor Details
-
ManagedSagaUncertainty
public ManagedSagaUncertainty(String sagaId, String step, String idempotencyKey, boolean compensation, long version, Object input) Validates required identity without invoking application data methods.- Throws:
NullPointerException- for missing identityIllegalArgumentException- for invalid version
-
-
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. -
sagaId
-
step
-
idempotencyKey
Returns the value of theidempotencyKeyrecord component.- Returns:
- the value of the
idempotencyKeyrecord component
-
compensation
public boolean compensation()Returns the value of thecompensationrecord component.- Returns:
- the value of the
compensationrecord component
-
version
-
input
-