Package org.zalando.riptide.failsafe
Class RetryRequestPolicy
java.lang.Object
org.zalando.riptide.failsafe.RetryRequestPolicy
- All Implemented Interfaces:
RequestPolicy
@API(status=EXPERIMENTAL)
public final class RetryRequestPolicy
extends Object
implements RequestPolicy
-
Constructor Summary
ConstructorsConstructorDescriptionRetryRequestPolicy(dev.failsafe.RetryPolicy<org.springframework.http.client.ClientHttpResponse> policy) -
Method Summary
Modifier and TypeMethodDescriptionbooleanapplies(RequestArguments arguments) dev.failsafe.Policy<org.springframework.http.client.ClientHttpResponse>prepare(RequestArguments arguments) withListener(RetryListener listener) withPredicate(Predicate<RequestArguments> predicate)
-
Constructor Details
-
RetryRequestPolicy
public RetryRequestPolicy(dev.failsafe.RetryPolicy<org.springframework.http.client.ClientHttpResponse> policy)
-
-
Method Details
-
withPredicate
-
withListener
-
applies
- Specified by:
appliesin interfaceRequestPolicy
-
prepare
public dev.failsafe.Policy<org.springframework.http.client.ClientHttpResponse> prepare(RequestArguments arguments) - Specified by:
preparein interfaceRequestPolicy
-