public class BoxRetryStrategy extends Object implements RetryStrategy
| Modifier and Type | Class and Description |
|---|---|
static class |
BoxRetryStrategy.Builder |
| Modifier and Type | Field and Description |
|---|---|
int |
maxAttempts |
int |
maxRetriesOnException |
double |
retryBaseInterval |
double |
retryRandomizationFactor |
| Modifier | Constructor and Description |
|---|---|
|
BoxRetryStrategy() |
protected |
BoxRetryStrategy(BoxRetryStrategy.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxAttempts() |
int |
getMaxRetriesOnException() |
double |
getRetryBaseInterval() |
double |
getRetryRandomizationFactor() |
double |
retryAfter(FetchOptions fetchOptions,
FetchResponse fetchResponse,
int attemptNumber) |
boolean |
shouldRetry(FetchOptions fetchOptions,
FetchResponse fetchResponse,
int attemptNumber) |
public int maxAttempts
public double retryRandomizationFactor
public double retryBaseInterval
public int maxRetriesOnException
public BoxRetryStrategy()
protected BoxRetryStrategy(BoxRetryStrategy.Builder builder)
public boolean shouldRetry(FetchOptions fetchOptions, FetchResponse fetchResponse, int attemptNumber)
shouldRetry in interface RetryStrategypublic double retryAfter(FetchOptions fetchOptions, FetchResponse fetchResponse, int attemptNumber)
retryAfter in interface RetryStrategypublic int getMaxAttempts()
public double getRetryRandomizationFactor()
public double getRetryBaseInterval()
public int getMaxRetriesOnException()