| 程序包 | 说明 |
|---|---|
| com.github.lianjiatech.retrofit.spring.boot.retry |
| 限定符和类型 | 字段和说明 |
|---|---|
private RetryRule[] |
GlobalRetryProperty.retryRules
重试规则,默认 响应状态码不是2xx 或者 发生IO异常 时触发重试
Retry rule
|
| 限定符和类型 | 方法和说明 |
|---|---|
static RetryRule |
RetryRule.valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static RetryRule[] |
RetryRule.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected okhttp3.Response |
RetryInterceptor.retryIntercept(int maxRetries,
int intervalMs,
RetryRule[] retryRules,
okhttp3.Interceptor.Chain chain) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected boolean |
RetryInterceptor.shouldThrowEx(HashSet<RetryRule> retryRuleSet,
Exception e) |
Copyright © 2024. All rights reserved.