C# 클래스 Retryable.BackoffPolicies

파일 보기 프로젝트 열기: pbolduc/Retry

공개 메소드들

메소드 설명
Linear ( int retryCount, System.TimeSpan minBackoff, System.TimeSpan maxBackoff, System.TimeSpan deltaBackoff ) : System.TimeSpan

Computes a linearly increasing delay based on the number of retries. Randomization is added to avoid a 'thundering herd' of retries when the service becomes available.

RandomExponential ( int retryCount, System.TimeSpan minBackoff, System.TimeSpan maxBackoff, System.TimeSpan deltaBackoff ) : System.TimeSpan

Computes an exponentially increasing delay based on the number of retries. Randomization is added to avoid a 'thundering herd' of retries when the service becomes available.

메소드 상세

Linear() 공개 정적인 메소드

Computes a linearly increasing delay based on the number of retries. Randomization is added to avoid a 'thundering herd' of retries when the service becomes available.
/// , /// are less then zero, or /// is less than or equal to zero. ///
public static Linear ( int retryCount, System.TimeSpan minBackoff, System.TimeSpan maxBackoff, System.TimeSpan deltaBackoff ) : System.TimeSpan
retryCount int The retry count.
minBackoff System.TimeSpan
maxBackoff System.TimeSpan
deltaBackoff System.TimeSpan
리턴 System.TimeSpan

RandomExponential() 공개 정적인 메소드

Computes an exponentially increasing delay based on the number of retries. Randomization is added to avoid a 'thundering herd' of retries when the service becomes available.
/// , or /// are less then zero. ///
public static RandomExponential ( int retryCount, System.TimeSpan minBackoff, System.TimeSpan maxBackoff, System.TimeSpan deltaBackoff ) : System.TimeSpan
retryCount int The retry count.
minBackoff System.TimeSpan The minimum delay.
maxBackoff System.TimeSpan The maximum delay.
deltaBackoff System.TimeSpan
리턴 System.TimeSpan