afterReplayedStep

open suspend fun afterReplayedStep(step: TypedValue, result: Any?)

Called once per ca.acendas.kstate.saga.journal.EntryPhase.Effect entry during saga resume replay, in journal seq order.

This hook fires instead of intercept with a StepPhase.After phase — the live afterStep path is NOT invoked during replay. intercept with StepPhase.Before is also NOT invoked; past events are immutable and cannot be vetoed.

The default body is empty so that existing SagaInterceptor implementations remain binary-compatible (they receive no replay invocations until they explicitly override this method). The ca.acendas.kstate.saga.SagaExecutor is compiled with -Xjvm-default=all, so this default is emitted as a JVM default interface method and is safely inherited by Java implementers compiled against prior releases.

Exceptions thrown by this hook are caught and logged (as a ca.acendas.kstate.saga.SagaEvent.InterceptorError) — they do not abort the resume.

Parameters

step

The step identifier from the Effect journal entry.

result

The decoded payload from the Effect entry, or null if decoding was skipped.