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:
Applies to
Azure SDK for Java