Class OktaHttpRequestRetryStrategy

java.lang.Object
org.apache.hc.client5.http.impl.DefaultHttpRequestRetryStrategy
com.okta.sdk.impl.retry.OktaHttpRequestRetryStrategy
All Implemented Interfaces:
org.apache.hc.client5.http.HttpRequestRetryStrategy

public final class OktaHttpRequestRetryStrategy extends org.apache.hc.client5.http.impl.DefaultHttpRequestRetryStrategy
  • Field Summary

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

    INSTANCE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    OktaHttpRequestRetryStrategy(int maxRetries, Collection<Class<? extends IOException>> clazzes, Collection<Integer> codes)
     
  • Method Summary

    Modifier and Type
    Method
    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)
     

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

    handleAsIdempotent

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface org.apache.hc.client5.http.HttpRequestRetryStrategy

    getRetryInterval
  • Constructor Details

    • OktaHttpRequestRetryStrategy

      public OktaHttpRequestRetryStrategy(int maxRetries, Collection<Class<? extends IOException>> clazzes, Collection<Integer> codes)
    • OktaHttpRequestRetryStrategy

      public OktaHttpRequestRetryStrategy(int maxRetries)
  • Method Details

    • retryRequest

      public boolean retryRequest(org.apache.hc.core5.http.HttpRequest request, IOException exception, int execCount, org.apache.hc.core5.http.protocol.HttpContext context)
      Specified by:
      retryRequest in interface org.apache.hc.client5.http.HttpRequestRetryStrategy
      Overrides:
      retryRequest in class org.apache.hc.client5.http.impl.DefaultHttpRequestRetryStrategy
    • retryRequest

      public boolean retryRequest(org.apache.hc.core5.http.HttpResponse response, int execCount, org.apache.hc.core5.http.protocol.HttpContext context)
      Specified by:
      retryRequest in interface org.apache.hc.client5.http.HttpRequestRetryStrategy
      Overrides:
      retryRequest in class org.apache.hc.client5.http.impl.DefaultHttpRequestRetryStrategy
    • getRetryInterval

      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)
      Specified by:
      getRetryInterval in interface org.apache.hc.client5.http.HttpRequestRetryStrategy
      Overrides:
      getRetryInterval in class org.apache.hc.client5.http.impl.DefaultHttpRequestRetryStrategy