Class CommitModelsWithRelationships
java.lang.Object
io.fluxzero.common.api.Request
io.fluxzero.common.api.Command
io.fluxzero.common.api.modeling.CommitModels
io.fluxzero.common.api.modeling.CommitModelsWithRelationships
- All Implemented Interfaces:
JsonType, RetryAwareRequest
A Model commit that additionally validates relationship selections. Its distinct wire type is intentional:
runtimes without relationship-read validation must reject the request instead of silently committing it.
-
Nested Class Summary
Nested classes/interfaces inherited from class CommitModels
CommitModels.Metric -
Constructor Summary
ConstructorsConstructorDescriptionCommitModelsWithRelationships(long requestId, String commitId, long readStateIndex, List<String> readModelIds, List<ModelCommitStep> substeps, ModelConflictPolicy conflictPolicy, Guarantee guarantee, boolean possibleDuplicate, boolean migration, List<ModelRelationshipRead> readRelationships) CommitModelsWithRelationships(CommitModels commit, List<ModelRelationshipRead> readRelationships) Adds immutable relationship dependencies while retaining the original request and commit identity. -
Method Summary
Methods inherited from class CommitModels
getBytes, getReadRelationships, markPossibleDuplicate, routingKey, singleTarget, toMetricMethods inherited from class Command
getGuarantee
-
Constructor Details
-
CommitModelsWithRelationships
public CommitModelsWithRelationships(CommitModels commit, List<ModelRelationshipRead> readRelationships) Adds immutable relationship dependencies while retaining the original request and commit identity. -
CommitModelsWithRelationships
@ConstructorProperties({"requestId","commitId","readStateIndex","readModelIds","substeps","conflictPolicy","guarantee","possibleDuplicate","migration","readRelationships"}) public CommitModelsWithRelationships(long requestId, String commitId, long readStateIndex, List<String> readModelIds, List<ModelCommitStep> substeps, ModelConflictPolicy conflictPolicy, Guarantee guarantee, boolean possibleDuplicate, boolean migration, List<ModelRelationshipRead> readRelationships)
-