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

    Constructors
    Constructor
    Description
    HttpClientRetryStrategy(int nMaxRetries, org.apache.hc.core5.util.TimeValue aRetryInterval, boolean bRetryAlways)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final int
     
    final org.apache.hc.core5.util.TimeValue
     
    protected boolean
    handleAsIdempotent(org.apache.hc.core5.http.HttpRequest request)
     
     

    Methods inherited from class org.apache.hc.client5.http.impl.DefaultHttpRequestRetryStrategy

    getRetryInterval, retryRequest, retryRequest

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods 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:
      handleAsIdempotent in class org.apache.hc.client5.http.impl.DefaultHttpRequestRetryStrategy
    • toString

      public String toString()
      Overrides:
      toString in class Object