timeout

Set timeout for current step.

If the step execution exceeds this duration, a TimeoutCancellationException will be thrown and compensation will be triggered.

Must be called after step.

Return

This builder for method chaining

Parameters

duration

Timeout duration

Throws

if called before step