Condividi tramite


RetryOptions.MaxRetryWaitTimeInSeconds Property

Definition

Gets or sets the maximum retry time in seconds for the Azure Cosmos DB service.

public int MaxRetryWaitTimeInSeconds { get; set; }
member this.MaxRetryWaitTimeInSeconds : int with get, set
Public Property MaxRetryWaitTimeInSeconds As Integer

Property Value

The default value is 30 seconds. For an example on how to set this value, please refer to RetryOptions.

Remarks

When a request fails due to a rate limiting error, the service sends back a response that contains a value indicating the client should not retry before the RetryAfter time period has elapsed. This property allows the application to set a maximum wait time for all retry attempts. If the cumulative wait time exceeds the this value, the client will stop retrying and return the error to the application.

For more information, see Handle rate limiting/request rate too large.

Applies to