Record Class ModelConflictResolver.Context
java.lang.Object
java.lang.Record
io.fluxzero.sdk.modeling.ModelConflictResolver.Context
- Record Components:
result- completed runtime conflict resultretries- number of retries already performedmaxRetries- maximum retries permitted for this commit
- Enclosing interface:
ModelConflictResolver
public static record ModelConflictResolver.Context(io.fluxzero.common.api.modeling.CommitModelsResult result, int retries, int maxRetries)
extends Record
Immutable conflict context supplied after runtime rollback.
-
Constructor Summary
ConstructorsConstructorDescriptionContext(io.fluxzero.common.api.modeling.CommitModelsResult result, int retries, int maxRetries) Creates an instance of aContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleancanRetry()Returns whether both runtime eligibility and the SDK retry bound permit another evaluation.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxRetriesrecord component.io.fluxzero.common.api.modeling.CommitModelsResultresult()Returns the value of theresultrecord component.intretries()Returns the value of theretriesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Context
public Context(io.fluxzero.common.api.modeling.CommitModelsResult result, int retries, int maxRetries) Creates an instance of aContextrecord class.- Parameters:
result- the value for theresultrecord componentretries- the value for theretriesrecord componentmaxRetries- the value for themaxRetriesrecord component
-
-
Method Details
-
canRetry
public boolean canRetry()Returns whether both runtime eligibility and the SDK retry bound permit another evaluation. -
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. -
result
-
retries
-
maxRetries
public int maxRetries()Returns the value of themaxRetriesrecord component.- Returns:
- the value of the
maxRetriesrecord component
-