Package io.vrap.rmf.base.client.http
Interface RetryRequestMiddleware
- All Superinterfaces:
Middleware
- All Known Implementing Classes:
RetryMiddleware
Deprecated.
Retry failed requests
Middleware for retrying of a requests upon configured response status codes and/or exceptions
Retrying on HTTP status codes
ApiRootBuilder.of()
...
.withRetryMiddleware(3, Arrays.asList(HttpStatusCode.SERVICE_UNAVAILABLE_503, HttpStatusCode.INTERNAL_SERVER_ERROR_500))
Retrying specific exceptions
ApiRootBuilder.of()
...
.addMiddleware(RetryRequestMiddleware.of(3, emptyList(), singletonList(JsonException.class)))
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Deprecated.static final int
Deprecated.Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionhandleFailures
(List<Class<? extends Throwable>> failures) Deprecated.handleStatusCodes
(List<Integer> statusCodes) Deprecated.static RetryRequestMiddleware
of
(int maxRetries) Deprecated.static RetryRequestMiddleware
of
(int maxRetries, long delay, long maxDelay) Deprecated.static RetryRequestMiddleware
of
(int maxRetries, long delay, long maxDelay, FailsafeRetryPolicyBuilderOptions fn) Deprecated.static RetryRequestMiddleware
Deprecated.static RetryRequestMiddleware
of
(int maxRetries, long delay, long maxDelay, List<Integer> statusCodes, List<Class<? extends Throwable>> failures) Deprecated.static RetryRequestMiddleware
Deprecated.static RetryRequestMiddleware
Deprecated.static RetryRequestMiddleware
of
(dev.failsafe.spi.Scheduler scheduler, int maxRetries) Deprecated.static RetryRequestMiddleware
of
(dev.failsafe.spi.Scheduler scheduler, int maxRetries, long delay, long maxDelay) Deprecated.static RetryRequestMiddleware
of
(dev.failsafe.spi.Scheduler scheduler, int maxRetries, long delay, long maxDelay, FailsafeRetryPolicyBuilderOptions fn) Deprecated.static RetryRequestMiddleware
of
(dev.failsafe.spi.Scheduler scheduler, int maxRetries, long delay, long maxDelay, List<Integer> statusCodes) Deprecated.static RetryRequestMiddleware
of
(dev.failsafe.spi.Scheduler scheduler, int maxRetries, long delay, long maxDelay, List<Integer> statusCodes, List<Class<? extends Throwable>> failures) Deprecated.static RetryRequestMiddleware
Deprecated.static RetryRequestMiddleware
of
(dev.failsafe.spi.Scheduler scheduler, int maxRetries, List<Integer> statusCodes, List<Class<? extends Throwable>> failures) Deprecated.static RetryRequestMiddleware
of
(ExecutorService executorService, int maxRetries) Deprecated.static RetryRequestMiddleware
of
(ExecutorService executorService, int maxRetries, long delay, long maxDelay) Deprecated.static RetryRequestMiddleware
of
(ExecutorService executorService, int maxRetries, long delay, long maxDelay, FailsafeRetryPolicyBuilderOptions fn) Deprecated.static RetryRequestMiddleware
of
(ExecutorService executorService, int maxRetries, long delay, long maxDelay, List<Integer> statusCodes) Deprecated.static RetryRequestMiddleware
of
(ExecutorService executorService, int maxRetries, long delay, long maxDelay, List<Integer> statusCodes, List<Class<? extends Throwable>> failures) Deprecated.static RetryRequestMiddleware
of
(ExecutorService executorService, int maxRetries, List<Integer> statusCodes) Deprecated.static RetryRequestMiddleware
of
(ExecutorService executorService, int maxRetries, List<Integer> statusCodes, List<Class<? extends Throwable>> failures) Deprecated.static RetryRequestMiddleware
of
(ScheduledExecutorService executorService, int maxRetries) Deprecated.static RetryRequestMiddleware
of
(ScheduledExecutorService executorService, int maxRetries, long delay, long maxDelay) Deprecated.static RetryRequestMiddleware
of
(ScheduledExecutorService executorService, int maxRetries, long delay, long maxDelay, FailsafeRetryPolicyBuilderOptions fn) Deprecated.static RetryRequestMiddleware
of
(ScheduledExecutorService executorService, int maxRetries, long delay, long maxDelay, List<Integer> statusCodes) Deprecated.static RetryRequestMiddleware
of
(ScheduledExecutorService executorService, int maxRetries, long delay, long maxDelay, List<Integer> statusCodes, List<Class<? extends Throwable>> failures) Deprecated.static RetryRequestMiddleware
of
(ScheduledExecutorService executorService, int maxRetries, List<Integer> statusCodes) Deprecated.static RetryRequestMiddleware
of
(ScheduledExecutorService executorService, int maxRetries, List<Integer> statusCodes, List<Class<? extends Throwable>> failures) Deprecated.Methods inherited from interface io.vrap.rmf.base.client.http.Middleware
invoke
-
Field Details
-
DEFAULT_MAX_DELAY
static final int DEFAULT_MAX_DELAYDeprecated.- See Also:
-
DEFAULT_INITIAL_DELAY
static final int DEFAULT_INITIAL_DELAYDeprecated.- See Also:
-
DEFAULT_RETRY_STATUS_CODES
Deprecated.
-
-
Method Details
-
of
Deprecated. -
of
Deprecated. -
of
static RetryRequestMiddleware of(int maxRetries, List<Integer> statusCodes, List<Class<? extends Throwable>> failures) Deprecated. -
of
Deprecated. -
of
static RetryRequestMiddleware of(int maxRetries, long delay, long maxDelay, List<Integer> statusCodes) Deprecated. -
of
static RetryRequestMiddleware of(int maxRetries, long delay, long maxDelay, List<Integer> statusCodes, List<Class<? extends Throwable>> failures) Deprecated. -
of
static RetryRequestMiddleware of(int maxRetries, long delay, long maxDelay, FailsafeRetryPolicyBuilderOptions fn) Deprecated. -
of
Deprecated. -
of
static RetryRequestMiddleware of(dev.failsafe.spi.Scheduler scheduler, int maxRetries, List<Integer> statusCodes) Deprecated. -
of
static RetryRequestMiddleware of(dev.failsafe.spi.Scheduler scheduler, int maxRetries, List<Integer> statusCodes, List<Class<? extends Throwable>> failures) Deprecated. -
of
static RetryRequestMiddleware of(dev.failsafe.spi.Scheduler scheduler, int maxRetries, long delay, long maxDelay) Deprecated. -
of
static RetryRequestMiddleware of(dev.failsafe.spi.Scheduler scheduler, int maxRetries, long delay, long maxDelay, List<Integer> statusCodes) Deprecated. -
of
static RetryRequestMiddleware of(dev.failsafe.spi.Scheduler scheduler, int maxRetries, long delay, long maxDelay, List<Integer> statusCodes, List<Class<? extends Throwable>> failures) Deprecated. -
of
static RetryRequestMiddleware of(dev.failsafe.spi.Scheduler scheduler, int maxRetries, long delay, long maxDelay, FailsafeRetryPolicyBuilderOptions fn) Deprecated. -
of
Deprecated. -
of
static RetryRequestMiddleware of(ScheduledExecutorService executorService, int maxRetries, List<Integer> statusCodes) Deprecated. -
of
static RetryRequestMiddleware of(ScheduledExecutorService executorService, int maxRetries, List<Integer> statusCodes, List<Class<? extends Throwable>> failures) Deprecated. -
of
static RetryRequestMiddleware of(ScheduledExecutorService executorService, int maxRetries, long delay, long maxDelay) Deprecated. -
of
static RetryRequestMiddleware of(ScheduledExecutorService executorService, int maxRetries, long delay, long maxDelay, List<Integer> statusCodes) Deprecated. -
of
static RetryRequestMiddleware of(ScheduledExecutorService executorService, int maxRetries, long delay, long maxDelay, List<Integer> statusCodes, List<Class<? extends Throwable>> failures) Deprecated. -
of
static RetryRequestMiddleware of(ScheduledExecutorService executorService, int maxRetries, long delay, long maxDelay, FailsafeRetryPolicyBuilderOptions fn) Deprecated. -
of
Deprecated. -
of
static RetryRequestMiddleware of(ExecutorService executorService, int maxRetries, List<Integer> statusCodes) Deprecated. -
of
static RetryRequestMiddleware of(ExecutorService executorService, int maxRetries, List<Integer> statusCodes, List<Class<? extends Throwable>> failures) Deprecated. -
of
static RetryRequestMiddleware of(ExecutorService executorService, int maxRetries, long delay, long maxDelay) Deprecated. -
of
static RetryRequestMiddleware of(ExecutorService executorService, int maxRetries, long delay, long maxDelay, List<Integer> statusCodes) Deprecated. -
of
static RetryRequestMiddleware of(ExecutorService executorService, int maxRetries, long delay, long maxDelay, List<Integer> statusCodes, List<Class<? extends Throwable>> failures) Deprecated. -
of
static RetryRequestMiddleware of(ExecutorService executorService, int maxRetries, long delay, long maxDelay, FailsafeRetryPolicyBuilderOptions fn) Deprecated. -
handleFailures
Deprecated. -
handleStatusCodes
Deprecated.
-
PolicyMiddleware
instead