public final class OktaHttpRequestRetryStrategy
extends org.apache.hc.client5.http.impl.DefaultHttpRequestRetryStrategy
| Constructor and Description | 
|---|
OktaHttpRequestRetryStrategy(int maxRetries)  | 
OktaHttpRequestRetryStrategy(int maxRetries,
                            Collection<Class<? extends IOException>> clazzes,
                            Collection<Integer> codes)  | 
| Modifier and Type | Method and Description | 
|---|---|
org.apache.hc.core5.util.TimeValue | 
getRetryInterval(org.apache.hc.core5.http.HttpResponse response,
                int execCount,
                org.apache.hc.core5.http.protocol.HttpContext context)  | 
boolean | 
retryRequest(org.apache.hc.core5.http.HttpRequest request,
            IOException exception,
            int execCount,
            org.apache.hc.core5.http.protocol.HttpContext context)  | 
boolean | 
retryRequest(org.apache.hc.core5.http.HttpResponse response,
            int execCount,
            org.apache.hc.core5.http.protocol.HttpContext context)  | 
handleAsIdempotentpublic OktaHttpRequestRetryStrategy(int maxRetries,
                                    Collection<Class<? extends IOException>> clazzes,
                                    Collection<Integer> codes)
public OktaHttpRequestRetryStrategy(int maxRetries)
public boolean retryRequest(org.apache.hc.core5.http.HttpRequest request,
                            IOException exception,
                            int execCount,
                            org.apache.hc.core5.http.protocol.HttpContext context)
retryRequest in interface org.apache.hc.client5.http.HttpRequestRetryStrategyretryRequest in class org.apache.hc.client5.http.impl.DefaultHttpRequestRetryStrategypublic boolean retryRequest(org.apache.hc.core5.http.HttpResponse response,
                            int execCount,
                            org.apache.hc.core5.http.protocol.HttpContext context)
retryRequest in interface org.apache.hc.client5.http.HttpRequestRetryStrategyretryRequest in class org.apache.hc.client5.http.impl.DefaultHttpRequestRetryStrategypublic org.apache.hc.core5.util.TimeValue getRetryInterval(org.apache.hc.core5.http.HttpResponse response,
                                                           int execCount,
                                                           org.apache.hc.core5.http.protocol.HttpContext context)
getRetryInterval in interface org.apache.hc.client5.http.HttpRequestRetryStrategygetRetryInterval in class org.apache.hc.client5.http.impl.DefaultHttpRequestRetryStrategyCopyright © 2017–2023 Okta. All rights reserved.