public class VerboseElementCache<K extends IJavaElement & IOpenable> extends ElementCache<K>
LRUCache.LRUCacheEntry<K,V>, LRUCache.StatsloadFactor, overflow, timestampsOncurrentSpace, DEFAULT_SPACELIMIT, entryQueue, entryQueueTail, entryTable, spaceLimit, timestampCounter| Constructor and Description |
|---|
VerboseElementCache(int size,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
makeSpace(int space)
Ensures there is the specified amount of free space in the receiver,
by removing old entries if necessary.
|
JavaElementInfo |
put(K key,
JavaElementInfo value)
Sets the value in the cache at the given key.
|
close, ensureSpaceLimit, newInstance, resetSpaceLimitclone, elements, fillingRatio, getEntryTable, getLoadFactor, getOverflow, printStats, privateRemoveEntry, privateRemoveEntry, remove, setLoadFactor, setSpaceLimit, shrink, toString, updateTimestampflush, flush, get, getCurrentSpace, getKey, getNewestTimestampCounter, getOldestElement, getOldestTimestampCounter, getSpaceLimit, keys, keysAndValues, newInstance, peek, privateAdd, privateAddEntry, removeKey, spaceFor, toStringContents, toStringFillingRationprotected boolean makeSpace(int space)
OverflowingLRUCachemakeSpace in class OverflowingLRUCache<K extends IJavaElement & IOpenable,JavaElementInfo>space - Amount of space to free uppublic JavaElementInfo put(K key, JavaElementInfo value)
LRUCacheput in class OverflowingLRUCache<K extends IJavaElement & IOpenable,JavaElementInfo>key - Key of object to add.value - Value of object to add.