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.
|
ICacheElement<K,V> |
get(K key)
Get an item from the cache
|
Set<K> |
getKeySet()
Get an Array of the keys for all elements in the memory cache
|
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
|
boolean |
remove(K key)
Removes an item from the cache.
|
void |
update(ICacheElement<K,V> ce)
Puts an item to the cache.
|
dispose, dumpMap, getCacheAttributes, getCacheName, getCompositeCache, getMultiple, getQuiet, getSize, getStatus, removeAll, 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 ParameterIOExceptionpublic ICacheElement<K,V> get(K key) throws IOException
get in interface IMemoryCache<K,V>get in class AbstractMemoryCache<K,V>key - Identifies item to findIOExceptionpublic boolean remove(K key) throws IOException
remove in interface IMemoryCache<K,V>remove in class AbstractMemoryCache<K,V>key - IOExceptionpublic Set<K> getKeySet()
getKeySet in interface IMemoryCache<K,V>getKeySet 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–2018 The Apache Software Foundation. All rights reserved.