Class ModelSnapshotMutation

java.lang.Object
io.fluxzero.common.api.modeling.ModelSnapshotMutation

public class ModelSnapshotMutation extends Object
Optional serialized snapshot consequence of one model target transition.

The SDK sends this only when the locally predicted target sequence is due for a snapshot. The runtime verifies that prediction against the assigned target sequence and adds the authoritative sequence and state index.

  • Field Details

  • Constructor Details

    • ModelSnapshotMutation

      public ModelSnapshotMutation()
  • Method Details

    • getBytes

      public long getBytes()
      Returns the serialized value size without protocol framing.
    • toDocument

      public SerializedDocument toDocument(String modelId, long sequenceNumber, long stateIndex)
      Creates the immutable search document after the runtime assigned its durable positions.
    • snapshotKey

      public static String snapshotKey(String modelId, long sequenceNumber)
      Stable immutable snapshot document key.