public class InstrumentingCache<K,V>
extends java.lang.Object
Constructor and Description |
---|
InstrumentingCache(java.lang.String type,
ICache<K,V> map) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(K key) |
V |
get(K key) |
long |
getCapacity() |
V |
getInternal(K key) |
CacheMetrics |
getMetrics() |
java.util.Iterator<K> |
hotKeyIterator(int n) |
java.util.Iterator<K> |
keyIterator() |
void |
put(K key,
V value) |
boolean |
putIfAbsent(K key,
V value) |
void |
remove(K key) |
boolean |
replace(K key,
V old,
V value) |
void |
setCapacity(long capacity) |
int |
size() |
long |
weightedSize() |
public void remove(K key)
public long getCapacity()
public void setCapacity(long capacity)
public int size()
public long weightedSize()
public void clear()
public java.util.Iterator<K> keyIterator()
public java.util.Iterator<K> hotKeyIterator(int n)
public boolean containsKey(K key)
public CacheMetrics getMetrics()
Copyright © 2016 The Apache Software Foundation