类 OptimizedHttpClientFactory.RetryInterceptor

java.lang.Object
cn.isliu.core.client.OptimizedHttpClientFactory.RetryInterceptor
所有已实现的接口:
okhttp3.Interceptor
封闭类:
OptimizedHttpClientFactory

public static class OptimizedHttpClientFactory.RetryInterceptor extends Object implements okhttp3.Interceptor
重试拦截器 实现指数退避重试策略
  • 嵌套类概要

    从接口继承的嵌套类/接口 okhttp3.Interceptor

    okhttp3.Interceptor.Chain, okhttp3.Interceptor.Companion
  • 字段概要

    从接口继承的字段 okhttp3.Interceptor

    Companion
  • 构造器概要

    构造器
    构造器
    说明
    RetryInterceptor(int maxRetryAttempts, long initialRetryDelay)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    okhttp3.Response
    intercept(okhttp3.Interceptor.Chain chain)
     

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • RetryInterceptor

      public RetryInterceptor(int maxRetryAttempts, long initialRetryDelay)
  • 方法详细资料

    • intercept

      public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException
      指定者:
      intercept 在接口中 okhttp3.Interceptor
      抛出:
      IOException