你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ExponentialBackoff Class
- java.
lang. Object - RetryStrategy
- com.
microsoft. azure. elasticdb. core. commons. transientfaulthandling. ExponentialBackoff
- com.
public class ExponentialBackoff extends RetryStrategy
A retry strategy with backoff parameters for calculating the exponential delay between retries.
Constructor Summary
Constructor | Description |
---|---|
ExponentialBackoff() |
Initializes a new instance of the ExponentialBackoff class. |
ExponentialBackoff(int retryCount, Duration minBackoff, Duration maxBackoff, Duration deltaBackoff) |
Initializes a new instance of the ExponentialBackoff class with the specified retry settings. |
ExponentialBackoff(String name, int retryCount, Duration minBackoff, Duration maxBackoff, Duration deltaBackoff) |
Initializes a new instance of the ExponentialBackoff class with the specified name and retry settings. |
ExponentialBackoff(String name, int retryCount, Duration minBackoff, Duration maxBackoff, Duration deltaBackoff, boolean firstFastRetry) |
Initializes a new instance of the ExponentialBackoff class with the specified name, retry settings, and fast retry option. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Should |
getShouldRetry()
Returns the corresponding ShouldRetry delegate. |
Inherited Members
Constructor Details
ExponentialBackoff
public ExponentialBackoff()
Initializes a new instance of the ExponentialBackoff class.
ExponentialBackoff
public ExponentialBackoff(int retryCount, Duration minBackoff, Duration maxBackoff, Duration deltaBackoff)
Initializes a new instance of the ExponentialBackoff class with the specified retry settings.
Parameters:
ExponentialBackoff
public ExponentialBackoff(String name, int retryCount, Duration minBackoff, Duration maxBackoff, Duration deltaBackoff)
Initializes a new instance of the ExponentialBackoff class with the specified name and retry settings.
Parameters:
ExponentialBackoff
public ExponentialBackoff(String name, int retryCount, Duration minBackoff, Duration maxBackoff, Duration deltaBackoff, boolean firstFastRetry)
Initializes a new instance of the ExponentialBackoff class with the specified name, retry settings, and fast retry option.
Parameters:
Method Details
getShouldRetry
public ShouldRetry getShouldRetry()
Returns the corresponding ShouldRetry delegate.
Returns: