- 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>>>
AMap
containing 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,MultiProcessor)
. The map is indexed byHttpRequest
and each value is aCompletableFuture
<HttpResponse
<V>
>A
MultiMapResult
is obtained from an invocation such as the one shown below:CompletableFuture
<MultiMapResult<V>
>HttpClient.sendAsync(
MultiProcessor.asMap(Function)
)
-
-
Method Summary
-
Methods declared in interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entry, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, of, of, of, of, of, of, of, of, of, of, of, ofEntries, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-