|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.portal.service.cache.AbstractCacheableService
public abstract class AbstractCacheableService
Base implementation for a cacheable service
Constructor Summary | |
---|---|
AbstractCacheableService()
|
Method Summary | |
---|---|
net.sf.ehcache.Cache |
getCache()
Return a cache object |
int |
getCacheSize()
Gets the number of item currently in the cache. |
protected java.lang.Object |
getFromCache(java.lang.String strKey)
Gets an object from the cache |
protected void |
initCache(java.lang.String strCacheName)
Init the cache. |
boolean |
isCacheEnable()
Gets the current cache status. |
protected void |
putInCache(java.lang.String strKey,
java.lang.Object object)
Put an object into the cache |
void |
resetCache()
Reset the cache. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface fr.paris.lutece.portal.service.util.LuteceService |
---|
getName |
Constructor Detail |
---|
public AbstractCacheableService()
Method Detail |
---|
protected void initCache(java.lang.String strCacheName)
strCacheName
- The cache nameprotected void putInCache(java.lang.String strKey, java.lang.Object object)
strKey
- The key of the object to put into the cacheobject
- The object to put into the cacheprotected java.lang.Object getFromCache(java.lang.String strKey)
strKey
- The key of the object to retrieve from the cache
public boolean isCacheEnable()
isCacheEnable
in interface CacheableService
public void resetCache()
resetCache
in interface CacheableService
public int getCacheSize()
getCacheSize
in interface CacheableService
public net.sf.ehcache.Cache getCache()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |