RetryPolicyProperties

Configuration properties for Restate's retry policy 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.

See also

Constructors

Link copied to clipboard
constructor()
constructor(@Nullable initialInterval: @Nullable Duration, @Nullable exponentiationFactor: @Nullable Double, @Nullable maxInterval: @Nullable Duration, @Nullable maxAttempts: @Nullable Integer, @Nullable onMaxAttempts: @Nullable RetryPolicyProperties.OnMaxAttempts)

Types

Link copied to clipboard
Behavior when retry policy reaches getMaxAttempts attempts.

Properties

Link copied to clipboard
@Nullable
@get:Nullable
open var exponentiationFactor: @Nullable Double
Link copied to clipboard
@Nullable
@get:Nullable
open var initialInterval: @Nullable Duration
Link copied to clipboard
@Nullable
@get:Nullable
open var maxAttempts: @Nullable Integer
Link copied to clipboard
@Nullable
@get:Nullable
open var maxInterval: @Nullable Duration
Link copied to clipboard
@Nullable
@get:Nullable
open var onMaxAttempts: @Nullable RetryPolicyProperties.OnMaxAttempts

Functions

Link copied to clipboard
open fun equals(o: Any): Boolean
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun toString(): String