public class ExponentialRetryPolicy extends AbfsRetryPolicy
| Constructor | Description |
|---|---|
ExponentialRetryPolicy(int maxIoRetries) |
Initializes a new instance of the
ExponentialRetryPolicy class. |
ExponentialRetryPolicy(int maxRetryCount,
int minBackoff,
int maxBackoff,
int deltaBackoff) |
Initializes a new instance of the
ExponentialRetryPolicy class. |
ExponentialRetryPolicy(AbfsConfiguration conf) |
Initializes a new instance of the
ExponentialRetryPolicy class. |
| Modifier and Type | Method | Description |
|---|---|---|
long |
getRetryInterval(int retryCount) |
Returns backoff interval between 80% and 120% of the desired backoff,
multiply by 2^n-1 for exponential.
|
getAbbreviation, getMaxRetryCount, shouldRetry, toStringpublic ExponentialRetryPolicy(int maxIoRetries)
ExponentialRetryPolicy class.public ExponentialRetryPolicy(AbfsConfiguration conf)
ExponentialRetryPolicy class.conf - The AbfsConfiguration from which to retrieve retry configuration.public ExponentialRetryPolicy(int maxRetryCount,
int minBackoff,
int maxBackoff,
int deltaBackoff)
ExponentialRetryPolicy class.maxRetryCount - The maximum number of retry attempts.minBackoff - The minimum backoff time.maxBackoff - The maximum backoff time.deltaBackoff - The value that will be used to calculate a random delta in the exponential delay
between retries.public long getRetryInterval(int retryCount)
getRetryInterval in class AbfsRetryPolicyretryCount - The current retry attempt count.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.