public sealed class RetryOptions
Reference documentation and code samples for the Google Cloud Storage v1 API class RetryOptions.
Options used to indicate the retry configuration for an API request in case of failure. This class is immutable. These determine whether and how the request should be retried.
Namespace
GoogleGoogle.CloudGoogle.Cloud.StorageV1Assembly
Google.Cloud.Storage.V1.dll
Constructors
RetryOptions(RetryTiming, RetryPredicate)
public RetryOptions(RetryTiming retryTiming, RetryPredicate retryPredicate)
Creates an instance based on the given timing and predicate.
Parameters | |
---|---|
Name | Description |
retryTiming | RetryTiming Timing configuration to apply when retrying. May be null, in which case the default timing will be used. |
retryPredicate | RetryPredicate Predicate to apply to determine whether an error response can be retried. May be null, in which case default error codes will be used. |
Properties
IdempotentRetryOptions
public static RetryOptions IdempotentRetryOptions { get; }
Options used by default for idempotent operations upon failure. It has all retry timings reset to defaults and retry predicate based on default error codes.
Property Value | |
---|---|
Type | Description |
RetryOptions |
Never
public static RetryOptions Never { get; }
This configuration ensures that the API request is never retried on failure.
Property Value | |
---|---|
Type | Description |
RetryOptions |