InvocationRetryPolicy

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.

Types

Link copied to clipboard
open class Builder
Link copied to clipboard
Behavior when retry policy reaches maxAttempts attempts.

Functions

Link copied to clipboard
Link copied to clipboard
open fun equals(o: Any): Boolean
Link copied to clipboard
@Nullable
open fun exponentiationFactor(): @Nullable Double
Exponential backoff multiplier used to compute the next retry delay.
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
@Nullable
open fun initialInterval(): @Nullable Duration
Initial delay before the first retry attempt.
Link copied to clipboard
@Nullable
open fun maxAttempts(): @Nullable Integer
Maximum number of attempts before giving up retrying.
Link copied to clipboard
@Nullable
open fun maxInterval(): @Nullable Duration
Upper bound for the computed retry delay.
Link copied to clipboard
@Nullable
open fun onMaxAttempts(): @Nullable InvocationRetryPolicy.OnMaxAttempts
Behavior when the configured maxAttempts is reached.
Link copied to clipboard
open fun toString(): String