SagaStepConfiguration

class SagaStepConfiguration<C, R>(builder: SagaBuilder<C, R>)

Configuration scope for a saga step, enabling fluent chaining.

Constructors

Link copied to clipboard
constructor(builder: SagaBuilder<C, R>)

Types

Link copied to clipboard
inner class IdempotentMarker

Wrapper for the "idempotent" keyword.

Link copied to clipboard
inner class ThenDoWrapper

Wrapper for the "then" keyword to define subsequent steps.

Link copied to clipboard
inner class UndoWrapper

Wrapper for the "undo" keyword in compensation configuration.

Properties

Link copied to clipboard

Starts compensation configuration.

Link copied to clipboard

Starts idempotency configuration.

Link copied to clipboard

Starts the next step configuration.

Functions

Link copied to clipboard

Extension to allow chaining after SagaStepConfiguration.

Link copied to clipboard
infix fun otherwise(compensation: suspend (R) -> Unit): SagaStepConfiguration<C, R>

Defines compensation logic with fluent "otherwise { ... }" syntax (suspend function).