AndBase开发框架  1.6
 全部  命名空间 文件 函数 变量 枚举值 
Public 成员函数 | 所有成员列表
com.ab.network.toolbox.RetryPolicy接口 参考
类 com.ab.network.toolbox.RetryPolicy 继承关系图:
com.ab.network.toolbox.DefaultRetryPolicy

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).

com.ab.network.toolbox.DefaultRetryPolicy 内被实现.

int com.ab.network.toolbox.RetryPolicy.getCurrentTimeout ( )

Returns the current timeout (used for logging).

com.ab.network.toolbox.DefaultRetryPolicy 内被实现.

void com.ab.network.toolbox.RetryPolicy.retry ( VolleyError  error) throws VolleyError

Prepares for the next retry by applying a backoff to the timeout.

参数
errorThe error code of the last attempt.
异常
VolleyErrorIn the event that the retry could not be performed (for example if we ran out of attempts), the passed in error is thrown.

com.ab.network.toolbox.DefaultRetryPolicy 内被实现.


该接口的文档由以下文件生成: