StepShortCircuited

data class StepShortCircuited(val step: TypedValue, val key: String, val timestamp: Long = System.currentTimeMillis()) : SagaEvent

Emitted when a step is short-circuited because the effect-key already has a recorded result.

The engine looked up the effect-key in the journal (or via an EffectResolver) and found a previous ca.acendas.kstate.saga.journal.EntryPhase.Effect entry. The step's forward lambda is not invoked; the recorded result is used instead.

Constructors

Link copied to clipboard
constructor(step: TypedValue, key: String, timestamp: Long = System.currentTimeMillis())

Properties

Link copied to clipboard
val key: String

The effect-key that matched an existing record.

Link copied to clipboard

The step that was short-circuited.

Link copied to clipboard
open override val timestamp: Long

Epoch millis when the event was emitted.