Class RateLimitInterceptor

  • All Implemented Interfaces:
    okhttp3.Interceptor

    @Deprecated
    public class RateLimitInterceptor
    extends java.lang.Object
    implements okhttp3.Interceptor
    Deprecated.
    As of 9.13.0, use the RetryInterceptor instead.
    Provides means to retry requests on RateLimiting (429).
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface okhttp3.Interceptor

        okhttp3.Interceptor.Chain, okhttp3.Interceptor.Companion
    • Field Summary

      • Fields inherited from interface okhttp3.Interceptor

        Companion
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      okhttp3.Response intercept​(okhttp3.Interceptor.Chain chain)
      Deprecated.
      Checks response and retries with delay in case of a 429, time between attempts is taken from response, if no valid information is on the response, the default is used.
      • Methods inherited from class java.lang.Object

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

      • RateLimitInterceptor

        public RateLimitInterceptor​(Authenticator authenticator,
                                    int defaultInterval,
                                    int maxRetries)
        Deprecated.
    • Method Detail

      • intercept

        public okhttp3.Response intercept​(okhttp3.Interceptor.Chain chain)
                                   throws java.io.IOException
        Deprecated.
        Checks response and retries with delay in case of a 429, time between attempts is taken from response, if no valid information is on the response, the default is used.
        Specified by:
        intercept in interface okhttp3.Interceptor
        Throws:
        java.io.IOException