|
||||||||||
| 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
public abstract class AbstractCache
Common abstract cache
Properties read here:
.timeout : The timeout (in milliseconds) for client that wait a ressource already in search.
| Constructor Summary | |
|---|---|
AbstractCache(java.lang.String strImplementationName,
java.lang.String strImplementationDescription)
The public constructor |
|
| Method Summary | |
|---|---|
abstract void |
doFlush()
Empty a cache |
abstract java.lang.Object |
doSearch(IContextChainManager filterManager,
java.io.Serializable key)
Realise the search of the object |
abstract void |
doStore(IContextChainManager filterManager,
java.io.Serializable key,
java.lang.Object element)
Ask to store an object (normally not present in cache) |
abstract int |
getCacheSize()
get the number of items in cache |
java.lang.Object |
getObject(IContextChainManager filterManager,
java.io.Serializable key,
java.lang.Object element)
Research an object in the cache section If cache/filter find the object from a "source", he must call @link #doFilter(IContextChainManager, Serializable, Object) before returning the object. |
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.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 AbstractCache(java.lang.String strImplementationName,
java.lang.String strImplementationDescription)
strImplementationName - the name of the implementation classstrImplementationDescription - the description of the implementation| Method Detail |
|---|
public void init(java.lang.String strBase)
IChainNodestrBase
init in interface IChainNodeinit in class AbstractChainNodestrBase - The prefix of params to searchIChainNode.init(String)
public final java.lang.Object getObject(IContextChainManager filterManager,
java.io.Serializable key,
java.lang.Object element)
IChainNode
filterManager - Context calling manager (needed to call some service or next element in filter's chain)key - The unique key of objectelement - The element to work (null if no element given)
null if no object foundIChainNode.getObject(IContextChainManager, Serializable, Object)
public abstract java.lang.Object doSearch(IContextChainManager filterManager,
java.io.Serializable key)
filterManager - The context filter/cache manager, used to call next filter or ask parameterskey - the key of the element
public abstract void doStore(IContextChainManager filterManager,
java.io.Serializable key,
java.lang.Object element)
filterManager - The context filter/cache manager, used to call next filter or ask parameterskey - the key of the elementelement - the element to storepublic abstract void doFlush()
public abstract int getCacheSize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||