public class VerboseElementCache extends ElementCache
LRUCache.LRUCacheEntry, 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.
|
java.lang.Object |
put(java.lang.Object key,
java.lang.Object 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 OverflowingLRUCachespace - Amount of space to free uppublic java.lang.Object put(java.lang.Object key,
java.lang.Object value)
OverflowingLRUCacheput in class OverflowingLRUCachekey - Key of object to add.value - Value of object to add.