Class RetryInterceptor

  • All Implemented Interfaces:
    okhttp3.Interceptor

    
    public final class RetryInterceptor
     implements Interceptor
                        

    Interceptor that implements retry logic for network requests based on a provided RetryPolicy. It retries requests that fail due to retriable HTTP errors, IOException, or IllegalStateException (HTTP/2 protocol errors), with exponential backoff.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Response intercept(Interceptor.Chain chain)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RetryInterceptor

        RetryInterceptor()
    • Method Detail

      • intercept

         Response intercept(Interceptor.Chain chain)