Condividi tramite


ExponentialRetryPolicy Class

Definition

Specifies the exponential backoff policy for retrying requests on exceptions in the communication channel between client and service replicas.

public class ExponentialRetryPolicy : Microsoft.ServiceFabric.Services.Communication.Client.IRetryPolicy
type ExponentialRetryPolicy = class
    interface IRetryPolicy
Public Class ExponentialRetryPolicy
Implements IRetryPolicy
Inheritance
ExponentialRetryPolicy
Implements

Constructors

ExponentialRetryPolicy(Int32, TimeSpan)

Initializes a new instance of the ExponentialRetryPolicy class with the supplied settings. and the default values for the other retry settings. The default values for maxRetryJitterForTransientErrors, maxRetryJitterForNonTransientErrors are 2 seconds. The default value for MaxRetryCount is 10.

Properties

BaseRetryDelay

Gets or sets the initial delay before retrying. All retries would be exponentially increasing from this value.

ClientRetryTimeout

Gets the timeout for the client side retry.

MaxDelayMultiplier

Gets or sets the maximum multiplier for delay. MaxDelay equals BaseRetryDelay * (2 to the power of MaxDelayMultiplier).

SameDelayRequestCounter

Gets or sets the number of requests to use the same delay in a row. This slows the exponential backoff.

TotalNumberOfRetries

Gets the maximum number of times to retry.

Methods

GetNextRetryDelay(RetryDelayParameters)

Gets the maximum interval to back-off before retrying in-case of Transient errors

Applies to