idempotent

fun idempotent(value: Boolean = true): StatefulSagaBuilder<C, R, S>

Mark the current step as idempotent (safe to retry).

Idempotent steps can be safely retried if execution fails and is restarted, as they produce the same result when executed multiple times with the same input.

Must be called after step.

Return

This builder for method chaining

Parameters

value

Whether the step is idempotent (default: true)

Throws

if called before step