Package com.helger.httpclient
Class HttpClientRetryStrategy
java.lang.Object
org.apache.hc.client5.http.impl.DefaultHttpRequestRetryStrategy
com.helger.httpclient.HttpClientRetryStrategy
- All Implemented Interfaces:
org.apache.hc.client5.http.HttpRequestRetryStrategy
public class HttpClientRetryStrategy
extends org.apache.hc.client5.http.impl.DefaultHttpRequestRetryStrategy
HTTP client retry handler based on DefaultHttpRequestRetryStrategy
- Author:
- Apache HC
-
Field Summary
Fields inherited from class org.apache.hc.client5.http.impl.DefaultHttpRequestRetryStrategy
INSTANCE -
Constructor Summary
ConstructorsConstructorDescriptionHttpClientRetryStrategy(int nMaxRetries, org.apache.hc.core5.util.TimeValue aRetryInterval, boolean bRetryAlways) -
Method Summary
Modifier and TypeMethodDescriptionfinal intfinal org.apache.hc.core5.util.TimeValueprotected booleanhandleAsIdempotent(org.apache.hc.core5.http.HttpRequest request) toString()Methods inherited from class org.apache.hc.client5.http.impl.DefaultHttpRequestRetryStrategy
getRetryInterval, retryRequest, retryRequestMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.hc.client5.http.HttpRequestRetryStrategy
getRetryInterval
-
Constructor Details
-
HttpClientRetryStrategy
public HttpClientRetryStrategy(@Nonnegative int nMaxRetries, @Nonnull org.apache.hc.core5.util.TimeValue aRetryInterval, boolean bRetryAlways)
-
-
Method Details
-
getMaxRetries
@Nonnegative public final int getMaxRetries() -
getRetryInterval
@Nonnull public final org.apache.hc.core5.util.TimeValue getRetryInterval() -
handleAsIdempotent
protected boolean handleAsIdempotent(org.apache.hc.core5.http.HttpRequest request) - Overrides:
handleAsIdempotentin classorg.apache.hc.client5.http.impl.DefaultHttpRequestRetryStrategy
-
toString
-