RetryInterceptor.Builder |
RetryInterceptor.Builder.on(java.util.function.Predicate<RetryInterceptor.Context<?>> predicate) |
Specifies that the interceptor is to retry the request if the retry RetryInterceptor.Context satisfies
the given predicate.
|
RetryInterceptor.Builder |
RetryInterceptor.Builder.on(java.util.function.Predicate<RetryInterceptor.Context<?>> predicate,
java.util.function.Function<RetryInterceptor.Context<?>,java.net.http.HttpRequest> requestModifier) |
Specifies that the interceptor is to retry the request, after applying the given request
modifier, if the retry RetryInterceptor.Context satisfies the given predicate.
|
RetryInterceptor.Builder |
RetryInterceptor.Builder.on(java.util.function.Predicate<RetryInterceptor.Context<?>> predicate,
java.util.function.Function<RetryInterceptor.Context<?>,java.net.http.HttpRequest> requestModifier) |
Specifies that the interceptor is to retry the request, after applying the given request
modifier, if the retry RetryInterceptor.Context satisfies the given predicate.
|
RetryInterceptor.Builder |
RetryInterceptor.Builder.onException(java.util.function.Predicate<java.lang.Throwable> exceptionPredicate,
java.util.function.Function<RetryInterceptor.Context<?>,java.net.http.HttpRequest> requestModifier) |
Specifies that the interceptor is to retry the request, after applying the given request
modifier, if an exception that satisfies the given predicate is thrown.
|
RetryInterceptor.Builder |
RetryInterceptor.Builder.onException(java.util.Set<java.lang.Class<? extends java.lang.Throwable>> exceptionTypes,
java.util.function.Function<RetryInterceptor.Context<?>,java.net.http.HttpRequest> requestModifier) |
Specifies that the interceptor is to retry the request, after applying the given request
modifier, if an exception with any of the given types is thrown.
|
RetryInterceptor.Builder |
RetryInterceptor.Builder.onResponse(java.util.function.Predicate<java.net.http.HttpResponse<?>> responsePredicate,
java.util.function.Function<RetryInterceptor.Context<?>,java.net.http.HttpRequest> requestModifier) |
Specifies that the interceptor is to retry the request, after applying the given request
modifier, if a response that satisfies the given predicate is received.
|
RetryInterceptor.Builder |
RetryInterceptor.Builder.onStatus(java.util.function.Predicate<java.lang.Integer> statusPredicate,
java.util.function.Function<RetryInterceptor.Context<?>,java.net.http.HttpRequest> requestModifier) |
Specifies that the interceptor is to retry the request, after applying the given request
modifier, if a response whose code satisfies the given predicate is received.
|
RetryInterceptor.Builder |
RetryInterceptor.Builder.onStatus(java.util.Set<java.lang.Integer> codes,
java.util.function.Function<RetryInterceptor.Context<?>,java.net.http.HttpRequest> requestModifier) |
Specifies that the interceptor is to retry the request, after applying the given request
modifier, if a response with any of the given status codes is received.
|