Package io.vrap.rmf.base.client.http
Class PolicyMiddlewareImpl
java.lang.Object
io.vrap.rmf.base.client.http.PolicyMiddlewareImpl
- All Implemented Interfaces:
Middleware
,PolicyMiddleware
,AutoCloseable
Implementation for a failsafe requests handling
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
CompletableFuture<ApiHttpResponse<byte[]>>
invoke
(ApiHttpRequest request, Function<ApiHttpRequest, CompletableFuture<ApiHttpResponse<byte[]>>> next)
-
Method Details
-
invoke
public CompletableFuture<ApiHttpResponse<byte[]>> invoke(ApiHttpRequest request, Function<ApiHttpRequest, CompletableFuture<ApiHttpResponse<byte[]>>> next) - Specified by:
invoke
in interfaceMiddleware
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-