Record Class ManagedSagaClient.Status
java.lang.Object
java.lang.Record
org.j7m.middleware.application.distributed.ManagedSagaClient.Status
- Record Components:
state- actual native statusversion- exact observed durable versionstep- selected stable step identity, empty if nonecompensationRequested- durable inverse-progression decisionreason- fixed host failure category, empty for application data or ordinary state
- Enclosing class:
ManagedSagaClient
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecompensationRequestedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.reason()Returns the value of thereasonrecord component.state()Returns the value of thestaterecord component.step()Returns the value of thesteprecord component.final StringtoString()Returns a string representation of this record class.longversion()Returns the value of theversionrecord component.
-
Constructor Details
-
Status
public Status(String state, long version, String step, boolean compensationRequested, String reason) Creates an instance of aStatusrecord class.- Parameters:
state- the value for thestaterecord componentversion- the value for theversionrecord componentstep- the value for thesteprecord componentcompensationRequested- the value for thecompensationRequestedrecord componentreason- the value for thereasonrecord component
-
-
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. -
state
-
version
-
step
-
compensationRequested
public boolean compensationRequested()Returns the value of thecompensationRequestedrecord component.- Returns:
- the value of the
compensationRequestedrecord component
-
reason
-