|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibatis.sqlmap.engine.cache.lru.LruCacheController
public class LruCacheController
LRU (least recently used) cache controller implementation
| Constructor Summary | |
|---|---|
LruCacheController()
Default constructor |
|
| Method Summary | |
|---|---|
void |
flush(CacheModel cacheModel)
Flushes the cache. |
int |
getCacheSize()
|
java.lang.Object |
getObject(CacheModel cacheModel,
java.lang.Object key)
Get an object out of the cache. |
void |
putObject(CacheModel cacheModel,
java.lang.Object key,
java.lang.Object value)
Add an object to the cache |
java.lang.Object |
removeObject(CacheModel cacheModel,
java.lang.Object key)
Remove an object from a cache model |
void |
setCacheSize(int cacheSize)
|
void |
setProperties(java.util.Properties props)
Configures the cache |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LruCacheController()
| Method Detail |
|---|
public int getCacheSize()
public void setCacheSize(int cacheSize)
public void setProperties(java.util.Properties props)
setProperties in interface CacheControllerprops - Optionally can contain properties [reference-type=WEAK|SOFT|STRONG]
public void putObject(CacheModel cacheModel,
java.lang.Object key,
java.lang.Object value)
putObject in interface CacheControllercacheModel - The cacheModelkey - The key of the object to be cachedvalue - The object to be cached
public java.lang.Object getObject(CacheModel cacheModel,
java.lang.Object key)
getObject in interface CacheControllercacheModel - The cache modelkey - The key of the object to be returned
public java.lang.Object removeObject(CacheModel cacheModel,
java.lang.Object key)
CacheController
removeObject in interface CacheControllercacheModel - - the model to remove the object fromkey - - the key to the object
public void flush(CacheModel cacheModel)
flush in interface CacheControllercacheModel - The cache model
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||