Class ModelBatchScope
java.lang.Object
io.fluxzero.sdk.modeling.ModelBatchScope
One message-batch-local model scope for read-your-writes, exact dependencies and commit release.
Pending values stay visible only at their namespace, routing segment and message position. Reading one registers its
producing entry as a predecessor; successful or failed entries immediately yield to authoritative storage.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classFrozen batch overlay. -
Method Summary
Modifier and TypeMethodDescriptionstatic CompletableFuture<Void> Releases the pending Model commit attached to the current message and returns its existing completion.static Entity<?> currentValue(String namespace, String modelId) Returns one pending exact value; aliases are deliberately not resolved.currentValues(String namespace) Returns pending exact values visible to the current message, in message order.currentValues(String namespace, MutationPlan.Resolution resolution) Returns the pending values needed to reconstruct one resolved context, including ancestor dependencies.static CommitAttemptoverlayCurrent(String namespace, CommitAttempt durable) Overlays pending exact values without changing the durable context's pinned state boundary.static <T> Entity<T> overlayCurrent(String namespace, String requestedId, Class<T> requestedType, Entity<T> durable) Overlays a durable direct load with the newest pending model or alias visible to the current message.static ModelBatchScope.SnapshotCaptures pending state without making uninspected Models commit dependencies.
-
Method Details
-
commitCurrent
Releases the pending Model commit attached to the current message and returns its existing completion. A context without pending changes completes immediately and never opens transport. Required predecessor commits are released and their pending transport is flushed before awaiting durability. -
overlayCurrent
-
overlayCurrent
Overlays pending exact values without changing the durable context's pinned state boundary. -
currentValues
-
snapshot
Captures pending state without making uninspected Models commit dependencies. -
currentValue
-
currentValues
public static Map<String,Object> currentValues(String namespace, MutationPlan.Resolution resolution) Returns the pending values needed to reconstruct one resolved context, including ancestor dependencies.
-