Class InvocationRetryPolicy

java.lang.Object
dev.restate.sdk.endpoint.definition.InvocationRetryPolicy

public final class InvocationRetryPolicy extends Object
Retry policy used by Restate when retrying failed handler invocations.

This policy controls an exponential backoff with optional capping and a terminal action:

  • initialInterval: delay before the first retry attempt.
  • exponentiationFactor: multiplier applied to the previous delay to compute the next delay.
  • maxInterval: upper bound for any computed delay.
  • maxAttempts: maximum number of attempts (initial call counts as the first attempt).
  • onMaxAttempts: what to do when maxAttempts is reached.

Unset fields inherit the corresponding defaults from the Restate server configuration. Implementations may also enforce system-wide minimum/maximum bounds.