C# 클래스 Google.Api.Gax.Grpc.BackoffSettings

Backoff settings used within RetrySettings to implement exponential backoff.
파일 보기 프로젝트 열기: googleapis/gax-dotnet 1 사용 예제들

공개 메소드들

메소드 설명
BackoffSettings ( System.TimeSpan delay, System.TimeSpan maxDelay, double delayMultiplier = 1.0 ) : System

Creates a new instance with the specified settings.

비공개 메소드들

메소드 설명
NextDelay ( System.TimeSpan currentDelay ) : System.TimeSpan

Works out the next delay from the current one, based on the multiplier and maximum.

메소드 상세

BackoffSettings() 공개 메소드

Creates a new instance with the specified settings.
public BackoffSettings ( System.TimeSpan delay, System.TimeSpan maxDelay, double delayMultiplier = 1.0 ) : System
delay System.TimeSpan The initial delay, either for the first retry or as the initial RPC timeout.
maxDelay System.TimeSpan The maximum delay to use. If the increasing delay due to the delay multiplier exceeds this, /// this maximum is used instead.
delayMultiplier double The multiplier to apply to the delay on each iteration; must be greater than or equal to 1.0. /// Defaults to 1.0.
리턴 System