IotHubServiceIncrementalDelayRetryPolicy Constructor

Definition

Creates an instance of this class.

public IotHubServiceIncrementalDelayRetryPolicy (uint maxRetries, TimeSpan delayIncrement, TimeSpan maxDelay, bool useJitter = true);
new Microsoft.Azure.Devices.IotHubServiceIncrementalDelayRetryPolicy : uint32 * TimeSpan * TimeSpan * bool -> Microsoft.Azure.Devices.IotHubServiceIncrementalDelayRetryPolicy
Public Sub New (maxRetries As UInteger, delayIncrement As TimeSpan, maxDelay As TimeSpan, Optional useJitter As Boolean = true)

Parameters

maxRetries
UInt32

The maximum number of retry attempts; use 0 for infinite retries.

delayIncrement
TimeSpan

The amount to increment the delay on each additional count of retry.

maxDelay
TimeSpan

The maximum amount of time to wait between retries.

useJitter
Boolean

Whether to add a small, random adjustment to the retry delay to avoid synchronicity in clients retrying.

Exceptions

Throw if the value of delayIncrement or maxDelay is negative.

Applies to