public class RetryInterceptor extends Object implements okhttp3.Interceptor
| 构造器和说明 |
|---|
RetryInterceptor(int retryTimes) |
public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain)
throws RuntimeException,
InterruptedIOException
intercept 在接口中 okhttp3.InterceptorRuntimeExceptionInterruptedIOExceptionpublic double retryInterval(int max,
int remain)
public int getRetryTimes(okhttp3.Request request)
Copyright © 2025. All rights reserved.