|
||||||||||
| 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<java.lang.String,java.lang.Object>
org.xwiki.cache.eviction.EntryEvictionConfiguration
org.xwiki.cache.eviction.LRUEvictionConfiguration
public class LRUEvictionConfiguration
An helper for EntryEvictionConfiguration.Algorithm.NONE cache algorithm. Evicts the least recently used entry
when thresholds are hit.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.xwiki.cache.eviction.EntryEvictionConfiguration |
|---|
EntryEvictionConfiguration.Algorithm |
| Nested classes/interfaces inherited from class java.util.AbstractMap |
|---|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
| Field Summary | |
|---|---|
static java.lang.String |
MAXENTRIES_ID
The key to access the maximum entries the cache can contain. |
| Fields inherited from class org.xwiki.cache.eviction.EntryEvictionConfiguration |
|---|
CONFIGURATIONID, TIMETOLIVE_ID |
| Constructor Summary | |
|---|---|
LRUEvictionConfiguration()
Create a new EntryEvictionConfiguration based on LRU algorithm. |
|
| Method Summary | |
|---|---|
int |
getMaxEntries()
|
void |
setMaxEntries(int maxEntries)
|
| Methods inherited from class org.xwiki.cache.eviction.EntryEvictionConfiguration |
|---|
getAlgorithm, getTimeToLive, setAlgotithm, setTimeToLive |
| Methods inherited from class java.util.HashMap |
|---|
clear, clone, containsKey, containsValue, entrySet, get, 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 |
|---|
equals, hashCode |
| Field Detail |
|---|
public static final java.lang.String MAXENTRIES_ID
| Constructor Detail |
|---|
public LRUEvictionConfiguration()
| Method Detail |
|---|
public void setMaxEntries(int maxEntries)
maxEntries - the maximum entries the cache can contain.public int getMaxEntries()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||