Package org.apache.cassandra.cache
Class InstrumentingCache<K,V>
java.lang.Object
org.apache.cassandra.cache.InstrumentingCache<K,V>
- Direct Known Subclasses:
AutoSavingCache
Wraps an ICache in requests + hits tracking.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(K key) longgetInternal(K key) hotKeyIterator(int n) voidbooleanputIfAbsent(K key, V value) voidbooleanvoidsetCapacity(long capacity) intsize()long
-
Constructor Details
-
InstrumentingCache
-
-
Method Details
-
put
-
putIfAbsent
-
replace
-
get
-
getInternal
-
remove
-
getCapacity
public long getCapacity() -
setCapacity
public void setCapacity(long capacity) -
size
public int size() -
weightedSize
public long weightedSize() -
clear
public void clear() -
keyIterator
-
hotKeyIterator
-
containsKey
-
getMetrics
-