IdempotentStep

data class IdempotentStep<C, R>(val step: SagaStep<C, R>, val idempotent: Boolean = true)

Extension to mark steps as idempotent at runtime.

This data class wraps a saga step with an idempotency flag, allowing runtime configuration of idempotency.

Parameters

C

The type of context passed to the step

R

The type of result produced by the step

Constructors

Link copied to clipboard
constructor(step: SagaStep<C, R>, idempotent: Boolean = true)

Properties

Link copied to clipboard

Whether the step is idempotent

Link copied to clipboard
val step: SagaStep<C, R>

The saga step to mark as idempotent