Package tech.riemann.etp
Class CacheMap<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
tech.riemann.etp.CacheMap<K,V>
- Type Parameters:
K-V-
- All Implemented Interfaces:
Map<K,V>
- Author:
- Kerbores(kerbores@riemann.tech)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, isEmpty, keySet, putAll, remove, size, toString, valuesMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
CacheMap
public CacheMap(long timeout)
-
-
Method Details
-
getDefault
-
entrySet
-
get
根据给定的键从缓存中获取值 -
put
向缓存中添加一个键值对。 -
equals
-
hashCode
public int hashCode()
-