Public 成员函数 | |
| DefaultRetryPolicy () | |
| DefaultRetryPolicy (int initialTimeoutMs, int maxNumRetries, float backoffMultiplier) | |
| int | getCurrentTimeout () |
| int | getCurrentRetryCount () |
| void | retry (VolleyError error) throws VolleyError |
静态 Public 属性 | |
| static final int | DEFAULT_TIMEOUT_MS = 2500 |
| static final int | DEFAULT_MAX_RETRIES = 1 |
| static final float | DEFAULT_BACKOFF_MULT = 1f |
Protected 成员函数 | |
| boolean | hasAttemptRemaining () |
Private 属性 | |
| int | mCurrentTimeoutMs |
| int | mCurrentRetryCount |
| final int | mMaxNumRetries |
| final float | mBackoffMultiplier |
Default retry policy for requests.
|
inline |
Constructs a new retry policy using the default timeouts.
|
inline |
Constructs a new retry policy.
| initialTimeoutMs | The initial timeout for the policy. |
| maxNumRetries | The maximum number of retries. |
| backoffMultiplier | Backoff multiplier for the policy. |
|
inline |
Returns the current retry count.
|
inline |
Returns the current timeout.
|
inlineprotected |
Returns true if this policy has attempts remaining, false otherwise.
|
inline |
Prepares for the next retry by applying a backoff to the timeout.
| error | The error code of the last attempt. |
|
static |
The default backoff multiplier
|
static |
The default number of retries
|
static |
The default socket timeout in milliseconds
|
private |
The backoff multiplier for for the policy.
|
private |
The current retry count.
|
private |
The current timeout in milliseconds.
|
private |
The maximum number of attempts.
1.8.8