Class RetryInterceptor
- java.lang.Object
-
- org.hl7.fhir.dstu3.utils.client.network.RetryInterceptor
-
- All Implemented Interfaces:
okhttp3.Interceptor
public class RetryInterceptor extends Object implements okhttp3.Interceptor
AnInterceptorforOkHttpClientthat controls the number of times we retry a to execute a given request, before reporting a failure. This includes unsuccessful return codes and timeouts.
-
-
Constructor Summary
Constructors Constructor Description RetryInterceptor(int maxRetry)
-
-
-
Constructor Detail
-
RetryInterceptor
public RetryInterceptor(int maxRetry)
-
-
Method Detail
-
intercept
public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException
- Specified by:
interceptin interfaceokhttp3.Interceptor- Throws:
IOException
-
-