org.apache.cassandra.cache
Class InstrumentingCache<K,V>
java.lang.Object
org.apache.cassandra.cache.InstrumentingCache<K,V>
- Direct Known Subclasses:
- AutoSavingCache
public class InstrumentingCache<K,V>
- extends java.lang.Object
Wraps an ICache in requests + hits tracking.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InstrumentingCache
public InstrumentingCache(ICache<K,V> map)
put
public void put(K key,
V value)
putIfAbsent
public boolean putIfAbsent(K key,
V value)
replace
public boolean replace(K key,
V old,
V value)
get
public V get(K key)
getInternal
public V getInternal(K key)
remove
public void remove(K key)
getCapacity
public int getCapacity()
isCapacitySetManually
public boolean isCapacitySetManually()
updateCapacity
public void updateCapacity(int capacity)
setCapacity
public void setCapacity(int capacity)
size
public int size()
weightedSize
public int weightedSize()
getHits
public long getHits()
getRequests
public long getRequests()
getRecentHitRate
public double getRecentHitRate()
clear
public void clear()
getKeySet
public java.util.Set<K> getKeySet()
hotKeySet
public java.util.Set<K> hotKeySet(int n)
containsKey
public boolean containsKey(K key)
isPutCopying
public boolean isPutCopying()
Copyright © 2012 The Apache Software Foundation