Class ModelReducer
java.lang.Object
io.fluxzero.sdk.modeling.ModelReducer
Sole executor for the immutable handler and target knowledge in
MutationPlan.
Interceptor outputs form ordered substeps under one pinned read boundary. Within a substep, payload handlers first produce one immutable intermediate state and model handlers then consume that complete state. Handlers within either phase never observe partial sibling results; only the composed final state becomes visible to later substeps. This class owns handler invocation, result validation, ordering and staged Graph changes for live handling, retry, rebase and reconstruction.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Objectreplay(MutationPlan plan, DeserializingMessage event, CommitAttempt context, String targetModelId) Replays the event for one target Model through the compiled plan's reducer using the supplied attempt context, returning the reconstructed value.static Objectreplay(MutationPlan plan, DeserializingMessage event, CommitAttempt context, String targetModelId, BiFunction<MutationPlan.Resolution, CommitAttempt, CommitAttempt> dependencies) Replays with late-bound embedded dependencies at the stored event's historical boundary.
-
Method Details
-
replay
public static Object replay(MutationPlan plan, DeserializingMessage event, CommitAttempt context, String targetModelId) Replays the event for one target Model through the compiled plan's reducer using the supplied attempt context, returning the reconstructed value. -
replay
public static Object replay(MutationPlan plan, DeserializingMessage event, CommitAttempt context, String targetModelId, BiFunction<MutationPlan.Resolution, CommitAttempt, CommitAttempt> dependencies) Replays with late-bound embedded dependencies at the stored event's historical boundary.
-