- java.lang.Object
-
- jdk.incubator.http.MultiMapResult<V>
-
- Type Parameters:
V- the response body type for all responses
- All Implemented Interfaces:
Map<HttpRequest,CompletableFuture<HttpResponse<V>>>
public class MultiMapResult<V> extends Object implements Map<HttpRequest,CompletableFuture<HttpResponse<V>>>
AMapcontaining the result of a HTTP/2 request and multi-response.
Incubating Feature. Will be removed in a future release.This is one possible implementation of the aggregate result type
<U>returned fromHttpClient.sendAsync(HttpRequest,HttpResponse.MultiSubscriber). The map is indexed byHttpRequestand each value is aCompletableFuture<HttpResponse<V>>A
MultiMapResultis obtained from an invocation such as the one shown below:CompletableFuture<MultiMapResult<V>>HttpClient.sendAsync(MultiSubscriber.asMap(Function))
-
-
Method Summary
-
Methods declared in interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-