|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.easyjf.cache.store.MemoryStore
com.easyjf.cache.store.LfuMemoryStore
Least Frequently Used (LFU) implementation of the memory store.
| Nested Class Summary | |
class |
LfuMemoryStore.ElementComparator
A comparator class compares two elements. |
| Method Summary | |
int |
compareElements(Element element1,
Element element2)
Compares its two arguments for order. |
void |
doPut(Element element)
Puts an element into the cache |
Element |
remove(java.io.Serializable key)
Removes an item from the cache. |
| Methods inherited from class com.easyjf.cache.store.MemoryStore |
containsKey, create, dispose, get, getKeyArray, getKeySet, getQuiet, getSize, getSizeInBytes, getStatus, put, remove, removeAll, removeElement |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public void doPut(Element element)
public Element remove(java.io.Serializable key)
public int compareElements(Element element1,
Element element2)
throws java.lang.ClassCastException
element1 - the first element to be compared.element2 - the second element to be compared.
java.lang.ClassCastException - if the arguments' types prevent them from
being compared by this Comparator.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||