Package am.ik.spring.http.client
Class RetryableClientHttpRequestInterceptor.Options
java.lang.Object
am.ik.spring.http.client.RetryableClientHttpRequestInterceptor.Options
- Enclosing class:
- RetryableClientHttpRequestInterceptor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddRetryableIOException(Predicate<IOException> retryableIOExceptionPredicate) addRetryableIOExceptions(Collection<? extends Predicate<IOException>> retryableIOExceptionPredicates) addRetryableIOExceptions(Predicate<IOException>... retryableIOExceptionPredicates) loadBalanceStrategy(LoadBalanceStrategy loadBalanceStrategy) removeRetryableIOException(Predicate<IOException> retryableIOExceptionPredicate) removeRetryableIOExceptions(Collection<? extends Predicate<IOException>> retryableIOExceptionPredicate) removeRetryableIOExceptions(Predicate<IOException>... retryableIOExceptionPredicate) retryableHttpResponsePredicate(RetryableHttpResponsePredicate retryableHttpResponsePredicate) Set a customRetryableHttpResponsePredicate.retryClientTimeout(boolean retryClientTimeout) Deprecated.retryConnectException(boolean retryConnectException) Deprecated.retryLifecycle(RetryLifecycle retryLifecycle) retryUnknownHostException(boolean retryUnknownHostException) Deprecated.sensitiveHeaderPredicate(Predicate<String> sensitiveHeaderPredicate) sensitiveHeaders(Set<String> sensitiveHeaders)
-
Field Details
-
DEFAULT_SENSITIVE_HEADERS
-
-
Constructor Details
-
Options
public Options()
-
-
Method Details
-
retryClientTimeout
@Deprecated public RetryableClientHttpRequestInterceptor.Options retryClientTimeout(boolean retryClientTimeout) Deprecated.Consider usingaddRetryableIOException(RetryableIOExceptionPredicate.CLIENT_TIMEOUT)orremoveRetryableIOException(RetryableIOExceptionPredicate.CLIENT_TIMEOUT) -
retryConnectException
@Deprecated public RetryableClientHttpRequestInterceptor.Options retryConnectException(boolean retryConnectException) Deprecated.Consider usingaddRetryableIOException(RetryableIOExceptionPredicate.CONNECT_TIMEOUT)orremoveRetryableIOException(RetryableIOExceptionPredicate.CONNECT_TIMEOUT) -
retryUnknownHostException
@Deprecated public RetryableClientHttpRequestInterceptor.Options retryUnknownHostException(boolean retryUnknownHostException) Deprecated.Consider usingaddRetryableIOException(RetryableIOExceptionPredicate.UNKNOWN_HOST)orremoveRetryableIOException(RetryableIOExceptionPredicate.UNKNOWN_HOST) -
addRetryableIOException
public RetryableClientHttpRequestInterceptor.Options addRetryableIOException(Predicate<IOException> retryableIOExceptionPredicate) -
addRetryableIOExceptions
public RetryableClientHttpRequestInterceptor.Options addRetryableIOExceptions(Collection<? extends Predicate<IOException>> retryableIOExceptionPredicates) -
addRetryableIOExceptions
public RetryableClientHttpRequestInterceptor.Options addRetryableIOExceptions(Predicate<IOException>... retryableIOExceptionPredicates) -
removeRetryableIOException
public RetryableClientHttpRequestInterceptor.Options removeRetryableIOException(Predicate<IOException> retryableIOExceptionPredicate) -
removeRetryableIOExceptions
public RetryableClientHttpRequestInterceptor.Options removeRetryableIOExceptions(Collection<? extends Predicate<IOException>> retryableIOExceptionPredicate) -
removeRetryableIOExceptions
public RetryableClientHttpRequestInterceptor.Options removeRetryableIOExceptions(Predicate<IOException>... retryableIOExceptionPredicate) -
retryableHttpResponsePredicate
public RetryableClientHttpRequestInterceptor.Options retryableHttpResponsePredicate(RetryableHttpResponsePredicate retryableHttpResponsePredicate) Set a customRetryableHttpResponsePredicate. If this is set,RetryableClientHttpRequestInterceptor.retryableResponseStatusesis no longer respected. -
loadBalanceStrategy
public RetryableClientHttpRequestInterceptor.Options loadBalanceStrategy(LoadBalanceStrategy loadBalanceStrategy) -
retryLifecycle
-
sensitiveHeaders
-
sensitiveHeaderPredicate
public RetryableClientHttpRequestInterceptor.Options sensitiveHeaderPredicate(Predicate<String> sensitiveHeaderPredicate)
-