org.apache.cassandra.cache
Class InstrumentedCache<K,V>
java.lang.Object
org.apache.cassandra.cache.InstrumentedCache<K,V>
- Direct Known Subclasses:
- JMXInstrumentedCache
public class InstrumentedCache<K,V>
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_CONCURENCY_LEVEL
public static final int DEFAULT_CONCURENCY_LEVEL
- See Also:
- Constant Field Values
InstrumentedCache
public InstrumentedCache(int capacity)
InstrumentedCache
public InstrumentedCache(int capacity,
int concurency)
put
public void put(K key,
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)
getSize
public int getSize()
getHits
public long getHits()
getRequests
public long getRequests()
getRecentHitRate
public double getRecentHitRate()
clear
public void clear()
getKeySet
public java.util.Set<K> getKeySet()
Copyright © 2011 The Apache Software Foundation