org.apache.cassandra.cache
Class InstrumentedCache<K,V>

java.lang.Object
  extended by org.apache.cassandra.cache.InstrumentedCache<K,V>
Direct Known Subclasses:
JMXInstrumentedCache

public class InstrumentedCache<K,V>
extends java.lang.Object


Field Summary
static int DEFAULT_CONCURENCY_LEVEL
           
 
Constructor Summary
InstrumentedCache(int capacity)
           
InstrumentedCache(int capacity, int concurency)
           
 
Method Summary
 void clear()
           
 V get(K key)
           
 int getCapacity()
           
 long getHits()
           
 V getInternal(K key)
           
 java.util.Set<K> getKeySet()
           
 double getRecentHitRate()
           
 long getRequests()
           
 int getSize()
           
 boolean isCapacitySetManually()
           
 void put(K key, V value)
           
 void remove(K key)
           
 void setCapacity(int capacity)
           
 void updateCapacity(int capacity)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CONCURENCY_LEVEL

public static final int DEFAULT_CONCURENCY_LEVEL
See Also:
Constant Field Values
Constructor Detail

InstrumentedCache

public InstrumentedCache(int capacity)

InstrumentedCache

public InstrumentedCache(int capacity,
                         int concurency)
Method Detail

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