Package am.ik.spring.http.client
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRetryableClientHttpRequestInterceptor(org.springframework.util.backoff.BackOff backOff) RetryableClientHttpRequestInterceptor(org.springframework.util.backoff.BackOff backOff, Set<Integer> retryableResponseStatuses) RetryableClientHttpRequestInterceptor(org.springframework.util.backoff.BackOff backOff, Set<Integer> retryableResponseStatuses, boolean retryClientTimeout) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.client.ClientHttpResponseintercept(org.springframework.http.HttpRequest request, byte[] body, org.springframework.http.client.ClientHttpRequestExecution execution)
-
Field Details
-
DEFAULT_RETRYABLE_RESPONSE_STATUSES
-
-
Constructor Details
-
RetryableClientHttpRequestInterceptor
public RetryableClientHttpRequestInterceptor(org.springframework.util.backoff.BackOff backOff) -
RetryableClientHttpRequestInterceptor
-
RetryableClientHttpRequestInterceptor
-
-
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:
interceptin interfaceorg.springframework.http.client.ClientHttpRequestInterceptor- Throws:
IOException
-