StepPhase

sealed interface StepPhase<C, R, S>

Represents a phase of saga step execution that can be intercepted.

Parameters

C

The context type passed to saga steps

R

The result type produced by saga steps

S

The state type (use Unit for non-stateful executors)

Inheritors

Types

Link copied to clipboard
data class After<C, R, S>(val step: TypedValue, val result: R, val state: S) : StepPhase<C, R, S>

The step has completed its forward action successfully.

Link copied to clipboard
data class Before<C, R, S>(val step: TypedValue, val context: C, val state: S, val effectKey: String? = null) : StepPhase<C, R, S>

The step is about to execute its forward action.

Link copied to clipboard
data class Compensation<C, R, S>(val step: TypedValue, val result: R?, val state: S) : StepPhase<C, R, S>

A compensation action has completed for this step.