public class RetryInterceptor extends Object implements okhttp3.Interceptor
| Constructor and Description |
|---|
RetryInterceptor(io.apimatic.coreinterfaces.http.ClientConfiguration httpClientConfig)
Default Constructor, Initializes the httpClientConfiguration attribute.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRequestEntry(okhttp3.Request okHttpRequest,
io.apimatic.coreinterfaces.http.request.configuration.CoreEndpointConfiguration endpointConfiguration,
io.apimatic.coreinterfaces.http.request.Request request)
Adds entry into Request entry map.
|
okhttp3.Response |
intercept(okhttp3.Interceptor.Chain chain)
Intercepts and retry requests if failed based on configuration.
|
public RetryInterceptor(io.apimatic.coreinterfaces.http.ClientConfiguration httpClientConfig)
httpClientConfig - the user specified configurations.public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain)
throws IOException
intercept in interface okhttp3.InterceptorIOExceptionInterceptor.intercept(okhttp3.Interceptor.Chain)public void addRequestEntry(okhttp3.Request okHttpRequest,
io.apimatic.coreinterfaces.http.request.configuration.CoreEndpointConfiguration endpointConfiguration,
io.apimatic.coreinterfaces.http.request.Request request)
okHttpRequest - The OK HTTP Request.endpointConfiguration - The overridden endpointConfiguration for request.request - The core interface RequestCopyright © 2025. All rights reserved.