|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ehcache.store.AbstractPolicy
net.sf.ehcache.store.LruPolicy
public class LruPolicy
Contains common LFU policy code for use between the LfuMemoryStore and the DiskStore, which also uses an LfuPolicy for evictions.
| Field Summary | |
|---|---|
static java.lang.String |
NAME
The name of this policy as a string literal |
| Constructor Summary | |
|---|---|
LruPolicy()
|
|
| Method Summary | |
|---|---|
boolean |
compare(Element element1,
Element element2)
Compares the desirableness for eviction of two elements Compares hit counts. |
java.lang.String |
getName()
|
| Methods inherited from class net.sf.ehcache.store.AbstractPolicy |
|---|
calculateSampleSize, generateRandomSample, selectedBasedOnPolicy |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String NAME
| Constructor Detail |
|---|
public LruPolicy()
| Method Detail |
|---|
public java.lang.String getName()
public boolean compare(Element element1,
Element element2)
element1 - the element to compare againstelement2 - the element to compare
|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||