Public 成员函数 | |
| int | getCurrentTimeout () |
| int | getCurrentRetryCount () |
| void | retry (VolleyError error) throws VolleyError |
Retry policy for a request.
| int com.ab.network.toolbox.RetryPolicy.getCurrentRetryCount | ( | ) |
Returns the current retry count (used for logging).
| int com.ab.network.toolbox.RetryPolicy.getCurrentTimeout | ( | ) |
Returns the current timeout (used for logging).
| void com.ab.network.toolbox.RetryPolicy.retry | ( | VolleyError | error | ) | throws VolleyError |
Prepares for the next retry by applying a backoff to the timeout.
| error | The error code of the last attempt. |
| VolleyError | In the event that the retry could not be performed (for example if we ran out of attempts), the passed in error is thrown. |
1.8.8