public class ConcurrentCache<K,V> extends Object implements Computable<K,V>
| 限定符和类型 | 字段和说明 |
|---|---|
protected ConcurrentMap<K,Future<V>> |
concurrentMap |
| 构造器和说明 |
|---|
ConcurrentCache() |
protected final ConcurrentMap<K,Future<V>> concurrentMap
public static <K,V> Computable<K,V> createComputable()
public V get(K key, Callable<V> callable)
Computableget 在接口中 Computable<K,V>key - keycallable - # @see Callablepublic void remove(K key)
Computableremove 在接口中 Computable<K,V>key - keypublic void clear()
Computableclear 在接口中 Computable<K,V>Copyright © 2019–2020 Alibaba Group Holding Limited. All rights reserved.