Record Class ModelCommitConflictException.ReadConflict
java.lang.Object
java.lang.Record
io.fluxzero.sdk.modeling.ModelCommitConflictException.ReadConflict
- Record Components:
commitId- original mutation message IDmodelId- canonical ID of the unavailable documentreadStateIndex- pinned mutation boundary
- Enclosing class:
ModelCommitConflictException
public static record ModelCommitConflictException.ReadConflict(String commitId, String modelId, long readStateIndex)
extends Record
Identifies a document that could no longer be reconstructed at the mutation's pinned read boundary.
These are read-side positions, not claims about the current storage head or relationship revision.
-
Constructor Summary
ConstructorsConstructorDescriptionReadConflict(String commitId, String modelId, long readStateIndex) Creates an instance of aReadConflictrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncommitId()Returns the value of thecommitIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.modelId()Returns the value of themodelIdrecord component.longReturns the value of thereadStateIndexrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ReadConflict
Creates an instance of aReadConflictrecord class.- Parameters:
commitId- the value for thecommitIdrecord componentmodelId- the value for themodelIdrecord componentreadStateIndex- the value for thereadStateIndexrecord 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. -
commitId
-
modelId
-
readStateIndex
public long readStateIndex()Returns the value of thereadStateIndexrecord component.- Returns:
- the value of the
readStateIndexrecord component
-