public class RetryInterceptor extends Object implements okhttp3.Interceptor
| 限定符和类型 | 字段和说明 |
|---|---|
protected GlobalRetryProperty |
globalRetryProperty |
| 构造器和说明 |
|---|
RetryInterceptor(GlobalRetryProperty globalRetryProperty) |
| 限定符和类型 | 方法和说明 |
|---|---|
okhttp3.Response |
intercept(okhttp3.Interceptor.Chain chain) |
protected boolean |
needRetry(Retry retry) |
protected okhttp3.Response |
retryIntercept(int maxRetries,
int intervalMs,
RetryRule[] retryRules,
okhttp3.Interceptor.Chain chain) |
protected boolean |
shouldThrowEx(HashSet<RetryRule> retryRuleSet,
Exception e) |
protected final GlobalRetryProperty globalRetryProperty
public RetryInterceptor(GlobalRetryProperty globalRetryProperty)
public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain)
throws IOException
intercept 在接口中 okhttp3.InterceptorIOExceptionprotected boolean needRetry(Retry retry)
protected okhttp3.Response retryIntercept(int maxRetries,
int intervalMs,
RetryRule[] retryRules,
okhttp3.Interceptor.Chain chain)
Copyright © 2024. All rights reserved.