Skip to main content

Module retry

Module retry 

Source
Expand description

Retry configuration.

RetryConfig sets the number of retry attempts and the backoff between them. Retries are additionally bounded by a retry token bucket (a shared retry quota): TokenBucket holds the tokens and RetryPartition determines which clients and operations share one. To size the token bucket or give a workload its own, use Builder::retry_partition.

Structs§

ClientRateLimiter
Rate limiter for adaptive retry.
RetryConfig
Retry configuration for requests.
RetryConfigBuilder
Builder for RetryConfig.
RetryPartition
Represents the retry partition, e.g. an endpoint, a region
TokenBucket
Token bucket that bounds retries — a client-side retry quota.

Enums§

ReconnectMode
Mode for connection re-establishment
RetryAction
The result of running a ClassifyRetry on a InterceptorContext.
RetryMode
Specifies how failed requests should be retried.
ShouldAttempt
An answer to the question “should I make a request attempt?”

Traits§

ClassifyRetry
Classifies what kind of retry is needed for a given InterceptorContext.