RetryConfig

data class RetryConfig @JvmOverloads constructor(val maxRetries: Int = 3, val initialDelay: Duration = Duration.ofSeconds(1), val multiplier: Double = 2.0, val maxDelay: Duration = Duration.ofSeconds(10))

How BigQueryAgentAnalyticsPlugin retries a batch of rows that BigQuery failed to write.

Each wait is the current delay times a random factor between 1 and 2, capped at maxDelay. A retry after an unclear failure such as DEADLINE_EXCEEDED can write rows more than once, with the same event_id; a timed-out append is not retried, since the client may still write it.

Constructors

Link copied to clipboard
constructor(maxRetries: Int = 3, initialDelay: Duration = Duration.ofSeconds(1), multiplier: Double = 2.0, maxDelay: Duration = Duration.ofSeconds(10))

Types

Link copied to clipboard
class Builder

Fluent builder for RetryConfig, provided primarily for Java callers. Any property left unset falls back to the same default as the constructor.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Delay before the first retry, without the random factor; not negative.

Link copied to clipboard

Ceiling on any single wait; at least initialDelay.

Link copied to clipboard

Retries after the first attempt, not negative; 0 turns retrying off.

Link copied to clipboard

Factor the delay grows by after each retry; finite and at least 1.

Functions

Link copied to clipboard

Returns a Builder initialized with this instance's properties, primarily for Java callers. Prefer it over copy from Java: copy takes every property positionally, so its signature changes whenever a property is added.