- 所有已实现的接口:
RetryWhen
- 从以下版本开始:
- 1.5.2
- 作者:
- gongjun[dt_flys@hotmail.com]
-
-
方法概要
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
构造器详细资料
-
DefaultRetryWhen
public DefaultRetryWhen()
-
方法详细资料
-
retryWhen
回调函数: 是否触发重试
该回调函数每次请求响应后或失败后被调用,其返回值将决定这次请求是否需要重试
- 指定者:
retryWhen 在接口中 RetryWhen
- 参数:
request - Forest请求对象
response - Forest响应对象
- 返回:
true 触发重试, 否则不触发重试