public abstract class RetryInfo extends Object
Clients could ignore the recommendation here or retry when this information is missing from error responses. However, it's always recommended that clients should use exponential backoff when retrying.
Clients should wait until the retryDelay amount of time has passed since receiving the
error response before retrying. If retrying requests also fail, clients should use an exponential
backoff scheme to gradually increase the delay between retries based on retryDelay, until
either a maximum number of retries have been reached or a maximum retry delay cap has been
reached.
This information helps clients implement intelligent retry strategies that respect the service's recommendations while avoiding overwhelming the service with rapid retry attempts.
| Modifier and Type | Class and Description |
|---|---|
static class |
RetryInfo.Builder
Builder for constructing RetryInfo instances.
|
| Constructor and Description |
|---|
RetryInfo() |
| Modifier and Type | Method and Description |
|---|---|
static RetryInfo.Builder |
builder()
Creates a new builder for constructing RetryInfo instances.
|
abstract Duration |
retryDelay()
Clients should wait at least this long between retrying the same request.
|
public abstract Duration retryDelay()
Note: This is serialized as a string in the format "3.000000001s" where the string ends in the suffix "s" (indicating seconds) and is preceded by a decimal number of seconds.
Examples of valid formats:
public static RetryInfo.Builder builder()
Copyright © 2026. All rights reserved.