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 within their repository family, 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.static Entity<?> currentValue(String namespace, String modelId, Object repositoryOwner) Returns an exact pending value from this repository family only.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.currentValues(String namespace, MutationPlan.Resolution resolution, Object repositoryOwner) Resolves the pending context and ancestor dependencies within this repository family only.currentValues(String namespace, Object repositoryOwner) Returns pending values from this repository family only.static CommitAttemptoverlayCurrent(String namespace, CommitAttempt durable) Overlays pending exact values without changing the durable context's pinned state boundary.static CommitAttemptoverlayCurrent(String namespace, CommitAttempt durable, Object repositoryOwner) Overlays only pending values produced by this repository family at the durable 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 <T> Entity<T> overlayCurrent(String namespace, String requestedId, Class<T> requestedType, Entity<T> durable, Object repositoryOwner) Overlays only pending values produced by this repository family.static ModelBatchScope.SnapshotCaptures pending state without making uninspected Models commit dependencies.static ModelBatchScope.SnapshotCaptures pending state belonging to the supplied repository-family identity.
-
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
-
overlayCurrent
Overlays pending exact values without changing the durable context's pinned state boundary. -
overlayCurrent
public static CommitAttempt overlayCurrent(String namespace, CommitAttempt durable, Object repositoryOwner) Overlays only pending values produced by this repository family at the durable boundary. -
currentValues
-
currentValues
-
snapshot
Captures pending state without making uninspected Models commit dependencies. -
snapshot
Captures pending state belonging to the supplied repository-family identity. -
currentValue
-
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. -
currentValues
-