public class LHMLRUMemoryCache<K,V> extends AbstractMemoryCache<K,V>
| Modifier and Type | Class and Description |
|---|---|
protected class |
LHMLRUMemoryCache.LHMSpooler
Implementation of removeEldestEntry in LinkedHashMap
|
| Constructor and Description |
|---|
LHMLRUMemoryCache() |
| Modifier and Type | Method and Description |
|---|---|
Map<K,MemoryElementDescriptor<K,V>> |
createMap()
Returns a synchronized LHMSpooler
|
void |
dumpCacheEntries()
Dump the cache entries from first to last for debugging.
|
int |
freeElements(int numberToFree)
This can't be implemented.
|
IStats |
getStatistics()
This returns semi-structured information on the memory cache, such as the size, put count,
hit count, and miss count.
|
void |
initialize(CompositeCache<K,V> hub)
For post reflection creation initialization
|
protected void |
lockedGetElement(MemoryElementDescriptor<K,V> me)
Update control structures after get
(guarded by the lock)
|
protected void |
lockedRemoveAll()
Removes all cached items from the cache control structures.
|
protected void |
lockedRemoveElement(MemoryElementDescriptor<K,V> me)
Remove element from control structure
(guarded by the lock)
|
void |
update(ICacheElement<K,V> ce)
Puts an item to the cache.
|
dispose, dumpMap, get, getCacheAttributes, getCacheName, getCompositeCache, getKeySet, getMultiple, getQuiet, getSize, remove, removeAll, removeByGroup, removeByHierarchy, setCacheAttributes, waterfalpublic void initialize(CompositeCache<K,V> hub)
initialize in interface IMemoryCache<K,V>initialize in class AbstractMemoryCache<K,V>hub - public Map<K,MemoryElementDescriptor<K,V>> createMap()
createMap in class AbstractMemoryCache<K,V>public void update(ICacheElement<K,V> ce) throws IOException
update in interface IMemoryCache<K,V>update in class AbstractMemoryCache<K,V>ce - Description of the ParameterIOExceptionprotected void lockedGetElement(MemoryElementDescriptor<K,V> me)
lockedGetElement in class AbstractMemoryCache<K,V>me - the memory element descriptorprotected void lockedRemoveElement(MemoryElementDescriptor<K,V> me)
lockedRemoveElement in class AbstractMemoryCache<K,V>me - the memory element descriptorprotected void lockedRemoveAll()
lockedRemoveAll in class AbstractMemoryCache<K,V>public IStats getStatistics()
getStatistics in interface IMemoryCache<K,V>getStatistics in class AbstractMemoryCache<K,V>public void dumpCacheEntries()
public int freeElements(int numberToFree)
throws IOException
numberToFree - IOExceptionCopyright © 2002–2022 The Apache Software Foundation. All rights reserved.