Uses of Interface
java.util.concurrent.ConcurrentMap
-
Packages that use ConcurrentMap 软件包 描述 java.net.http HTTP客户端和WebSocket APIjava.util.concurrent 实用类通常在并发编程中有用。java.util.stream 用于支持元素流上的功能样式操作的类,例如集合上的map-reduce转换。 -
-
Uses of ConcurrentMap in java.net.http
Methods in java.net.http with parameters of type ConcurrentMap 变量和类型 方法 描述 static <T> HttpResponse.PushPromiseHandler<T>
HttpResponse.PushPromiseHandler. of(Function<HttpRequest,HttpResponse.BodyHandler<T>> pushPromiseHandler, ConcurrentMap<HttpRequest,CompletableFuture<HttpResponse<T>>> pushPromisesMap)
返回推送承诺处理程序,它将推送承诺及其响应累积到给定的映射中。 -
Uses of ConcurrentMap in java.util.concurrent
Subinterfaces of ConcurrentMap in java.util.concurrent 变量和类型 接口 描述 interface
ConcurrentNavigableMap<K,V>
ConcurrentMap
支持NavigableMap
操作,并且递归地支持其可导航的子地图。Classes in java.util.concurrent that implement ConcurrentMap 变量和类型 类 描述 class
ConcurrentHashMap<K,V>
一个哈希表,支持检索的完全并发和更新的高预期并发性。class
ConcurrentSkipListMap<K,V>
可扩展的并发ConcurrentNavigableMap
实现。 -
Uses of ConcurrentMap in java.util.stream
Methods in java.util.stream with type parameters of type ConcurrentMap 变量和类型 方法 描述 static <T,K,A,D,M extends ConcurrentMap<K,D>>
Collector<T,?,M>Collectors. groupingByConcurrent(Function<? super T,? extends K> classifier, Supplier<M> mapFactory, Collector<? super T,A,D> downstream)
返回并发Collector
,对T
类型的输入元素执行级联“group by”操作,根据分类函数对元素进行分组,然后使用指定的下游Collector
对与给定键关联的值执行缩减操作。static <T,K,U,M extends ConcurrentMap<K,U>>
Collector<T,?,M>Collectors. toConcurrentMap(Function<? super T,? extends K> keyMapper, Function<? super T,? extends U> valueMapper, BinaryOperator<U> mergeFunction, Supplier<M> mapFactory)
返回并发Collector
,它将元素累积到ConcurrentMap
其键和值是将提供的映射函数应用于输入元素的结果。Methods in java.util.stream that return types with arguments of type ConcurrentMap 变量和类型 方法 描述 static <T,K>
Collector<T,?,ConcurrentMap<K,List<T>>>Collectors. groupingByConcurrent(Function<? super T,? extends K> classifier)
返回并发Collector
,对T
类型的输入元素执行“分组依据”操作,根据分类函数对元素进行分组。static <T,K,A,D>
Collector<T,?,ConcurrentMap<K,D>>Collectors. groupingByConcurrent(Function<? super T,? extends K> classifier, Collector<? super T,A,D> downstream)
返回并发Collector
,对类型为T
输入元素执行级联“分组依据”操作,根据分类函数对元素进行分组,然后使用指定的下游Collector
对与给定键关联的值执行缩减操作。static <T,K,U>
Collector<T,?,ConcurrentMap<K,U>>Collectors. toConcurrentMap(Function<? super T,? extends K> keyMapper, Function<? super T,? extends U> valueMapper)
返回并发Collector
,它将元素累积到ConcurrentMap
其键和值是将提供的映射函数应用于输入元素的结果。static <T,K,U>
Collector<T,?,ConcurrentMap<K,U>>Collectors. toConcurrentMap(Function<? super T,? extends K> keyMapper, Function<? super T,? extends U> valueMapper, BinaryOperator<U> mergeFunction)
Returns a concurrentCollector
that accumulates elements into aConcurrentMap
whose keys and values are the result of applying the provided mapping functions to the input elements.
-