public final class RetryHandler extends Object implements okhttp3.Interceptor
| Constructor and Description |
|---|
RetryHandler()
Initialized an instance of
RetryHandler class. |
RetryHandler(RetryStrategy retryStrategy)
Initialized an instance of
RetryHandler class. |
| Modifier and Type | Method and Description |
|---|---|
okhttp3.Response |
intercept(okhttp3.Interceptor.Chain chain) |
RetryStrategy |
strategy() |
public RetryHandler()
RetryHandler class.
Sets default retry strategy base on Exponential Backoff.public RetryHandler(RetryStrategy retryStrategy)
RetryHandler class.retryStrategy - retry strategy to use.public RetryStrategy strategy()
public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain)
throws IOException
intercept in interface okhttp3.InterceptorIOExceptionCopyright © 2019. All rights reserved.