接口 RetryPolicy
- 所有已知实现类:
DefaultRetryPolicy
public interface RetryPolicy
Retry policy for a request.
-
方法概要
修饰符和类型方法说明intReturns the current retry count (used for logging).intReturns the current timeout (used for logging).voidretry(VolleyError error) Prepares for the next retry by applying a backoff to the timeout.
-
方法详细资料
-
getCurrentTimeout
int getCurrentTimeout()Returns the current timeout (used for logging). -
getCurrentRetryCount
int getCurrentRetryCount()Returns the current retry count (used for logging). -
retry
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.
-