org.ajax4jsf.cache
Class LRUMapCache
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap<K,V>
org.ajax4jsf.util.LRUMap<java.lang.Object,java.lang.Object>
org.ajax4jsf.cache.LRUMapCache
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.Object,java.lang.Object>, Cache
public class LRUMapCache
- extends LRUMap<java.lang.Object,java.lang.Object>
- implements Cache
- Author:
- Nick - mailto:nbelaevski@exadel.com
created 01.05.2007
- See Also:
- Serialized Form
Nested classes/interfaces inherited from class java.util.AbstractMap |
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
Methods inherited from class java.util.LinkedHashMap |
clear, containsValue, get |
Methods inherited from class java.util.HashMap |
clone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.ajax4jsf.cache.Cache |
clear, containsKey, containsValue, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from interface java.util.Map |
containsKey, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
LRUMapCache
public LRUMapCache(CacheLoader cacheLoader,
int initialSize)
LRUMapCache
public LRUMapCache(CacheLoader cacheLoader)
addListener
public void addListener(CacheListener listener)
- Specified by:
addListener
in interface Cache
evict
public void evict()
- Specified by:
evict
in interface Cache
get
public java.lang.Object get(java.lang.Object key,
java.lang.Object context)
throws CacheException
- Specified by:
get
in interface Cache
- Throws:
CacheException
getCacheEntry
public CacheEntry getCacheEntry(java.lang.Object key)
- Specified by:
getCacheEntry
in interface Cache
load
public void load(java.lang.Object key,
java.lang.Object context)
throws CacheException
- Specified by:
load
in interface Cache
- Throws:
CacheException
peek
public java.lang.Object peek(java.lang.Object key)
- Specified by:
peek
in interface Cache
removeListener
public void removeListener(CacheListener listener)
- Specified by:
removeListener
in interface Cache
Copyright © 2010. All Rights Reserved.