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

public class AdoptModelMigration extends Command
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 Details

    • AdoptModelMigration

      @ConstructorProperties({"modelId","collection","expectedDocumentIndex","expectedStateIndex","guarantee"}) public AdoptModelMigration(String modelId, String collection, Long expectedDocumentIndex, long expectedStateIndex, Guarantee guarantee)
  • Method Details

    • routingKey

      public String routingKey()
      Description copied from class: Command
      Optionally 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:
      routingKey in class Command
      Returns:
      a routing key string, or null if not specified