|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.comarquage.util.cache.genericimpl.AbstractChainNode
fr.paris.lutece.plugins.comarquage.util.cache.genericimpl.AbstractCache
fr.paris.lutece.plugins.comarquage.util.cache.genericimpl.MemCache
public class MemCache
Memory Object Accessor
Properties read here:
.delay : The delay (in ms) between two scan in cache to reject old object..maxSize : The maximum size of the cache before flush.
| Constructor Summary | |
|---|---|
MemCache()
Public constructor |
|
| Method Summary | |
|---|---|
void |
doFlush()
Empty a cache |
java.lang.Object |
doSearch(IContextChainManager filterManager,
java.io.Serializable key)
Realise the search of the object |
void |
doStore(IContextChainManager filterManager,
java.io.Serializable key,
java.lang.Object element)
Ask to store an object (normally not present in cache) |
int |
getCacheSize()
Get the number of items in cache |
void |
init(java.lang.String strBase)
Init the instance with params based on prefix strBase |
| Methods inherited from class fr.paris.lutece.plugins.comarquage.util.cache.genericimpl.AbstractCache |
|---|
getObject |
| Methods inherited from class fr.paris.lutece.plugins.comarquage.util.cache.genericimpl.AbstractChainNode |
|---|
getImplementationDescription, getImplementationName, readInitKeyAdapter, readInitObjectTransform |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MemCache()
| Method Detail |
|---|
public void init(java.lang.String strBase)
IChainNodestrBase
init in interface IChainNodeinit in class AbstractCachestrBase - The prefix of params to searchIChainNode.init(String)
public java.lang.Object doSearch(IContextChainManager filterManager,
java.io.Serializable key)
AbstractCache
doSearch in class AbstractCachefilterManager - The context filter/cache manager, used to call next filter or ask parameterskey - the key of the element
AbstractCache.doSearch(IContextChainManager, Serializable)
public void doStore(IContextChainManager filterManager,
java.io.Serializable key,
java.lang.Object element)
AbstractCache
doStore in class AbstractCachefilterManager - The context filter/cache manager, used to call next filter or ask parameterskey - the key of the elementelement - the element to storeAbstractCache.doStore(IContextChainManager, Serializable, Object)public void doFlush()
doFlush in class AbstractCachepublic int getCacheSize()
getCacheSize in class AbstractCache
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||