Permalink
Fetching contributors…
Cannot retrieve contributors at this time
138 lines (138 sloc) 7 KB
<Type Name="RetryOptions" FullName="Microsoft.Azure.Documents.Client.RetryOptions">
<TypeSignature Language="C#" Value="public class RetryOptions" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit RetryOptions extends System.Object" />
<TypeSignature Language="DocId" Value="T:Microsoft.Azure.Documents.Client.RetryOptions" />
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Documents.Client</AssemblyName>
<AssemblyVersion>1.14.0.0</AssemblyVersion>
<AssemblyVersion>1.16.0.0</AssemblyVersion>
<AssemblyVersion>1.17.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.DocumentDB.Core</AssemblyName>
<AssemblyVersion>1.5.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Object</BaseTypeName>
</Base>
<Interfaces />
<Docs>
<summary>
RetryOptions class defines the parameters an application can set to customize the
built-in retry policies in the Azure DocumentDB database service.
</summary>
<remarks>
The <see cref="T:Microsoft.Azure.Documents.Client.DocumentClient" /> class supports retry
on certain types of exceptions. This class provides options for applications to control the
retry behavior.
</remarks>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public RetryOptions ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Azure.Documents.Client.RetryOptions.#ctor" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Documents.Client</AssemblyName>
<AssemblyVersion>1.14.0.0</AssemblyVersion>
<AssemblyVersion>1.16.0.0</AssemblyVersion>
<AssemblyVersion>1.17.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.DocumentDB.Core</AssemblyName>
<AssemblyVersion>1.5.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters />
<Docs>
<summary>
Creates a new instance of the RetryOptions class and intialize all properties
to default values for the Azure DocumentDB database service.
</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="MaxRetryAttemptsOnThrottledRequests">
<MemberSignature Language="C#" Value="public int MaxRetryAttemptsOnThrottledRequests { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance int32 MaxRetryAttemptsOnThrottledRequests" />
<MemberSignature Language="DocId" Value="P:Microsoft.Azure.Documents.Client.RetryOptions.MaxRetryAttemptsOnThrottledRequests" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Documents.Client</AssemblyName>
<AssemblyVersion>1.14.0.0</AssemblyVersion>
<AssemblyVersion>1.16.0.0</AssemblyVersion>
<AssemblyVersion>1.17.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.DocumentDB.Core</AssemblyName>
<AssemblyVersion>1.5.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Docs>
<summary>
Gets or sets the maximum number of retries in the case where the request fails
because the Azure DocumentDB database service has applied rate limiting on the client.
</summary>
<value>
The default value is 9. This means in the case where the request is rate limited,
the same request will be issued for a maximum of 10 times to the server before
an error is returned to the application. If the value of this property is set to 0,
there will be no automatic retry on rate limiting requests from the client and the exception
needs to handled at the application level.
For an example on how to set this value, please refer to <see cref="P:Microsoft.Azure.Documents.Client.ConnectionPolicy.RetryOptions" />.
</value>
<remarks>
<para>
When a client is sending requests faster than the allowed rate,
the service will return HttpStatusCode 429 (Too Many Request) to rate limit the client. The current
implementation in the SDK will then wait for the amount of time the service tells it to wait and
retry after the time has elapsed.
</para>
<para>
For more information, see <see href="https://docs.microsoft.com/en-us/azure/documentdb/documentdb-performance-tips#429">Handle rate limiting/request rate too large</see>.
</para>
</remarks>
</Docs>
</Member>
<Member MemberName="MaxRetryWaitTimeInSeconds">
<MemberSignature Language="C#" Value="public int MaxRetryWaitTimeInSeconds { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance int32 MaxRetryWaitTimeInSeconds" />
<MemberSignature Language="DocId" Value="P:Microsoft.Azure.Documents.Client.RetryOptions.MaxRetryWaitTimeInSeconds" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Documents.Client</AssemblyName>
<AssemblyVersion>1.14.0.0</AssemblyVersion>
<AssemblyVersion>1.16.0.0</AssemblyVersion>
<AssemblyVersion>1.17.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.DocumentDB.Core</AssemblyName>
<AssemblyVersion>1.5.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Docs>
<summary>
Gets or sets the maximum retry time in seconds for the Azure DocumentDB database service.
</summary>
<value>
The default value is 30 seconds. For an example on how to set this value, please refer to <see cref="P:Microsoft.Azure.Documents.Client.ConnectionPolicy.RetryOptions" />.
</value>
<remarks>
<para>
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 <see cref="P:Microsoft.Azure.Documents.DocumentClientException.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.
</para>
<para>
For more information, see <see href="https://docs.microsoft.com/en-us/azure/documentdb/documentdb-performance-tips#429">Handle rate limiting/request rate too large</see>.
</para>
</remarks>
</Docs>
</Member>
</Members>
</Type>