Class RetryInterceptor

  • All Implemented Interfaces:
    okhttp3.Interceptor

    public class RetryInterceptor
    extends Object
    implements okhttp3.Interceptor
    An Interceptor for OkHttpClient that controls the number of times we retry a to execute a given request, before reporting a failure. This includes unsuccessful return codes and timeouts.
    • Method Detail

      • intercept

        public okhttp3.Response intercept​(okhttp3.Interceptor.Chain chain)
                                   throws IOException
        Specified by:
        intercept in interface okhttp3.Interceptor
        Throws:
        IOException