Class RetryableClientHttpRequestInterceptor

java.lang.Object
am.ik.spring.http.client.RetryableClientHttpRequestInterceptor
All Implemented Interfaces:
org.springframework.http.client.ClientHttpRequestInterceptor

public class RetryableClientHttpRequestInterceptor extends Object implements org.springframework.http.client.ClientHttpRequestInterceptor
  • Field Details

    • DEFAULT_RETRYABLE_RESPONSE_STATUSES

      public static Set<Integer> DEFAULT_RETRYABLE_RESPONSE_STATUSES
  • Constructor Details

    • RetryableClientHttpRequestInterceptor

      public RetryableClientHttpRequestInterceptor(org.springframework.util.backoff.BackOff backOff)
    • RetryableClientHttpRequestInterceptor

      public RetryableClientHttpRequestInterceptor(org.springframework.util.backoff.BackOff backOff, Set<Integer> retryableResponseStatuses)
    • RetryableClientHttpRequestInterceptor

      public RetryableClientHttpRequestInterceptor(org.springframework.util.backoff.BackOff backOff, Set<Integer> retryableResponseStatuses, boolean retryClientTimeout)
  • Method Details

    • intercept

      public org.springframework.http.client.ClientHttpResponse intercept(org.springframework.http.HttpRequest request, byte[] body, org.springframework.http.client.ClientHttpRequestExecution execution) throws IOException
      Specified by:
      intercept in interface org.springframework.http.client.ClientHttpRequestInterceptor
      Throws:
      IOException