Package io.vrap.rmf.base.client.http
Class RetryMiddleware
java.lang.Object
io.vrap.rmf.base.client.http.RetryMiddleware
- All Implemented Interfaces:
Middleware
,RetryRequestMiddleware
,AutoCloseable
@Deprecated
public class RetryMiddleware
extends Object
implements RetryRequestMiddleware, AutoCloseable
Deprecated.
Implementation for a retry of a requests upon configured response status codes
-
Field Summary
Fields inherited from interface io.vrap.rmf.base.client.http.RetryRequestMiddleware
DEFAULT_INITIAL_DELAY, DEFAULT_MAX_DELAY, DEFAULT_RETRY_STATUS_CODES
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Deprecated.CompletableFuture<ApiHttpResponse<byte[]>>
invoke
(ApiHttpRequest request, Function<ApiHttpRequest, CompletableFuture<ApiHttpResponse<byte[]>>> next) Deprecated.
-
Method Details
-
invoke
public CompletableFuture<ApiHttpResponse<byte[]>> invoke(ApiHttpRequest request, Function<ApiHttpRequest, CompletableFuture<ApiHttpResponse<byte[]>>> next) Deprecated.- Specified by:
invoke
in interfaceMiddleware
-
close
public void close()Deprecated.- Specified by:
close
in interfaceAutoCloseable
-
PolicyMiddleware
instead