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) |
handleAsIdempotent
public 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.HttpRequestRetryStrategy
retryRequest
in class org.apache.hc.client5.http.impl.DefaultHttpRequestRetryStrategy
public 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.HttpRequestRetryStrategy
retryRequest
in class org.apache.hc.client5.http.impl.DefaultHttpRequestRetryStrategy
public 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.HttpRequestRetryStrategy
getRetryInterval
in class org.apache.hc.client5.http.impl.DefaultHttpRequestRetryStrategy
Copyright © 2017–2023 Okta. All rights reserved.