RetryConfigKoogProperties

class RetryConfigKoogProperties(val enabled: Boolean = false, val maxAttempts: Int? = null, @DurationUnit(value = ChronoUnit.SECONDS) val initialDelay: Duration? = null, @DurationUnit(value = ChronoUnit.SECONDS) val maxDelay: Duration? = null, val backoffMultiplier: Double? = null, val jitterFactor: Double? = null)(source)

Represents configuration properties for retry mechanisms associated with clients.

This class is used to define retry behavior, including specifications such as the number of retry attempts, delay between attempts, and mechanisms to control backoff strategy and randomness in delays.

Constructors

Link copied to clipboard
constructor(enabled: Boolean = false, maxAttempts: Int? = null, @DurationUnit(value = ChronoUnit.SECONDS) initialDelay: Duration? = null, @DurationUnit(value = ChronoUnit.SECONDS) maxDelay: Duration? = null, backoffMultiplier: Double? = null, jitterFactor: Double? = null)

Properties

Link copied to clipboard

Defines the multiplier to apply to the delay for each subsequent retry attempt.

Link copied to clipboard

Indicates whether retries are enabled.

Link copied to clipboard

Specifies the initial delay before the first retry attempt, in seconds.

Link copied to clipboard

Specifies the factor to introduce randomness in the delay calculations to avoid symmetric loads.

Link copied to clipboard

Specifies the maximum number of retry attempts.

Link copied to clipboard

Specifies the maximum delay allowed between retry attempts, in seconds.