类 OptimizedHttpClientFactory.RetryInterceptor
java.lang.Object
cn.isliu.core.client.OptimizedHttpClientFactory.RetryInterceptor
- 所有已实现的接口:
okhttp3.Interceptor
public static class OptimizedHttpClientFactory.RetryInterceptor
extends Object
implements okhttp3.Interceptor
重试拦截器
实现指数退避重试策略
-
嵌套类概要
从接口继承的嵌套类/接口 okhttp3.Interceptor
okhttp3.Interceptor.Chain, okhttp3.Interceptor.Companion -
字段概要
从接口继承的字段 okhttp3.Interceptor
Companion -
构造器概要
构造器 -
方法概要
-
构造器详细资料
-
RetryInterceptor
public RetryInterceptor(int maxRetryAttempts, long initialRetryDelay)
-
-
方法详细资料
-
intercept
- 指定者:
intercept在接口中okhttp3.Interceptor- 抛出:
IOException
-