|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap
org.apache.activemq.util.LRUCache
public class LRUCache
A Simple LRU Cache
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.util.AbstractMap |
|---|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
| Field Summary | |
|---|---|
protected int |
maxCacheSize
|
| Constructor Summary | |
|---|---|
LRUCache()
Constructs LRU Cache |
|
| Method Summary | |
|---|---|
int |
getMaxCacheSize()
|
protected boolean |
removeEldestEntry(java.util.Map.Entry entry)
|
void |
setMaxCacheSize(int maxCacheSize)
|
| Methods inherited from class java.util.LinkedHashMap |
|---|
clear, containsValue, get |
| Methods inherited from class java.util.HashMap |
|---|
clone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, values |
| Methods inherited from class java.util.AbstractMap |
|---|
equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
containsKey, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
| Field Detail |
|---|
protected int maxCacheSize
| Constructor Detail |
|---|
public LRUCache()
| Method Detail |
|---|
public int getMaxCacheSize()
public void setMaxCacheSize(int maxCacheSize)
maxCacheSize - The maxCacheSize to set.protected boolean removeEldestEntry(java.util.Map.Entry entry)
removeEldestEntry in class java.util.LinkedHashMap
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||