C# Class Retryable.BackoffPolicies

ファイルを表示 Open project: pbolduc/Retry

Public Methods

Method Description
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.

Method Details

Linear() public static method

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
return System.TimeSpan

RandomExponential() public static method

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
return System.TimeSpan