Class RetryInterceptor

java.lang.Object
com.helixframework.okhttp.retry.RetryInterceptor
All Implemented Interfaces:
okhttp3.Interceptor

public class RetryInterceptor extends Object implements okhttp3.Interceptor
OkHttp interceptor that retries failed requests with exponential backoff and jitter.

The interceptor will automatically retry http requests that result in 50x responses and can be configured to retry under different scenarios using the `retryOn` method of the builder.