ExponentialRetry クラス

定義

指数バックオフ スキームを使用して再試行間隔を決定し、指定された回数の再試行を実行する再試行ポリシーを表します。

public class ExponentialRetry : Microsoft.Azure.Batch.Common.IRetryPolicy
type ExponentialRetry = class
    interface IRetryPolicy
Public Class ExponentialRetry
Implements IRetryPolicy
継承
ExponentialRetry
実装

コンストラクター

ExponentialRetry(TimeSpan, Int32, Nullable<TimeSpan>)

指定されたデルタと最大再試行回数を使用して、ExponentialRetry クラスの新しいインスタンスを初期化します。

プロパティ

DeltaBackoff

再試行の間のバックオフ間隔を取得します。結果のバックオフは 2^n * deltaBackoff (n は再試行回数) です。

MaxBackoff

再試行の間に待機する最大時間。

MaximumRetries

再試行の最大数を取得します。

メソッド

ShouldRetryAsync(Exception, OperationContext)

操作を再試行するかどうかと次の再試行までの待機時間を決定します。

適用対象