Class AdoptModelMigration
java.lang.Object
io.fluxzero.common.api.Request
io.fluxzero.common.api.Command
io.fluxzero.common.api.search.AdoptModelMigration
- All Implemented Interfaces:
JsonType
Atomically adopts an application-verified staged Model document.
A null expected document index means that the production document was observed to be absent. Otherwise the
Runtime only adds the direct Model head while that exact production document version still exists. Adoption retains
the accepted normalized document in an invisible source collection until the first ordinary Model write. A later
migration pass can therefore stage and adopt a newer legacy boundary without exposing unadopted state to Graph
composition. The first ordinary Model write atomically removes that source, ends legacy-write coexistence and makes
the cutover forward-only.
-
Constructor Summary
ConstructorsConstructorDescriptionAdoptModelMigration(String modelId, String collection, Long expectedDocumentIndex, long expectedStateIndex, Guarantee guarantee) -
Method Summary
Modifier and TypeMethodDescriptionOptionally specifies a routing key for this command, which may be used to partition work or apply consistent hashing when processed in the Fluxzero Runtime.Methods inherited from class Command
getGuarantee
-
Constructor Details
-
AdoptModelMigration
@ConstructorProperties({"modelId","collection","expectedDocumentIndex","expectedStateIndex","guarantee"}) public AdoptModelMigration(String modelId, String collection, Long expectedDocumentIndex, long expectedStateIndex, Guarantee guarantee)
-
-
Method Details
-
routingKey
Description copied from class:CommandOptionally specifies a routing key for this command, which may be used to partition work or apply consistent hashing when processed in the Fluxzero Runtime.- Overrides:
routingKeyin classCommand- Returns:
- a routing key string, or
nullif not specified
-