Google Cloud Storage v1 API - Class RetryOptions (4.7.0)

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.

Inheritance

object > RetryOptions

Namespace

Google.Cloud.Storage.V1

Assembly

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
NameDescription
retryTimingRetryTiming

Timing configuration to apply when retrying. May be null, in which case the default timing will be used.

retryPredicateRetryPredicate

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
TypeDescription
RetryOptions

Never

public static RetryOptions Never { get; }

This configuration ensures that the API request is never retried on failure.

Property Value
TypeDescription
RetryOptions