Class ModelSnapshotMutation
java.lang.Object
io.fluxzero.common.api.modeling.ModelSnapshotMutation
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetBytes()Returns the serialized value size without protocol framing.static StringsnapshotKey(String modelId, long sequenceNumber) Stable immutable snapshot document key.toDocument(String modelId, long sequenceNumber, long stateIndex) Creates the immutable search document after the runtime assigned its durable positions.
-
Field Details
-
COLLECTION
- See Also:
-
MODEL_ID_FACET
- See Also:
-
SEQUENCE_NUMBER
- See Also:
-
STATE_INDEX
- See Also:
-
-
Constructor Details
-
ModelSnapshotMutation
public ModelSnapshotMutation()
-
-
Method Details
-
getBytes
public long getBytes()Returns the serialized value size without protocol framing. -
toDocument
Creates the immutable search document after the runtime assigned its durable positions. -
snapshotKey
-