Class RateLimitInterceptor
- java.lang.Object
-
- com.ibm.cloud.sdk.core.http.ratelimit.RateLimitInterceptor
-
- All Implemented Interfaces:
okhttp3.Interceptor
@Deprecated public class RateLimitInterceptor extends java.lang.Object implements okhttp3.InterceptorDeprecated.As of 9.13.0, use the RetryInterceptor instead.Provides means to retry requests on RateLimiting (429).
-
-
Constructor Summary
Constructors Constructor Description RateLimitInterceptor(Authenticator authenticator, int defaultInterval, int maxRetries)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description okhttp3.Responseintercept(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.
-
-
-
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.IOExceptionDeprecated.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:
interceptin interfaceokhttp3.Interceptor- Throws:
java.io.IOException
-
-