public interface RetryPolicy
Modifier and Type | Method and Description |
---|---|
int |
getCurrentRetryCount()
Returns the current retry count (used for logging).
|
int |
getCurrentTimeout()
Returns the current timeout (used for logging).
|
void |
retry(VolleyError error)
Prepares for the next retry by applying a backoff to the timeout.
|
int getCurrentTimeout()
int getCurrentRetryCount()
void retry(VolleyError error) throws VolleyError
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.