public class RetryInterceptor extends Object implements okhttp3.Interceptor
| Constructor and Description |
|---|
RetryInterceptor(int retryTimes) |
| Modifier and Type | Method and Description |
|---|---|
int |
getRetryTimes(okhttp3.Request request) |
okhttp3.Response |
intercept(okhttp3.Interceptor.Chain chain) |
double |
retryInterval(int max,
int remain) |
public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain)
throws RuntimeException,
InterruptedIOException
intercept in interface okhttp3.InterceptorRuntimeExceptionInterruptedIOExceptionpublic double retryInterval(int max,
int remain)
public int getRetryTimes(okhttp3.Request request)
Copyright © 2025. All rights reserved.