Class XmlTransformerCacheService
- java.lang.Object
-
- fr.paris.lutece.portal.service.html.XmlTransformerCacheService
-
- All Implemented Interfaces:
CacheableService,LuteceService
public class XmlTransformerCacheService extends java.lang.Object implements CacheableService
XmlTransformerCacheService- Since:
- v 3.0
-
-
Constructor Summary
Constructors Constructor Description XmlTransformerCacheService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidenableCache(boolean bEnable)Enable the cacheintgetCacheSize()Gets the number of item currently in the cache.java.lang.StringgetInfos()Returns cache infosjava.util.List<java.lang.String>getKeys()Gets all keys in the cacheintgetMaxElements()Returns maximum elements accepted into the cachelonggetMemorySize()Return the memory sizejava.lang.StringgetName()Returns the Service namelonggetTimeToLive()Returns the time to live for objects in the cachestatic voidinit()Inits the.booleanisCacheEnable()Gets the current cache status.voidresetCache()Reset the cache.
-
-
-
Method Detail
-
init
public static void init()
Inits the.
-
getName
public java.lang.String getName()
Returns the Service name- Specified by:
getNamein interfaceLuteceService- Returns:
- The name as a String
-
isCacheEnable
public boolean isCacheEnable()
Gets the current cache status.- Specified by:
isCacheEnablein interfaceCacheableService- Returns:
- true if enable, otherwise false
-
getCacheSize
public int getCacheSize()
Gets the number of item currently in the cache.- Specified by:
getCacheSizein interfaceCacheableService- Returns:
- the number of item currently in the cache.
-
resetCache
public void resetCache()
Reset the cache.- Specified by:
resetCachein interfaceCacheableService
-
enableCache
public void enableCache(boolean bEnable)
Enable the cache- Specified by:
enableCachein interfaceCacheableService- Parameters:
bEnable- true to enable, false to disable
-
getKeys
public java.util.List<java.lang.String> getKeys()
Gets all keys in the cache- Specified by:
getKeysin interfaceCacheableService- Returns:
- The List
-
getMaxElements
public int getMaxElements()
Returns maximum elements accepted into the cache- Specified by:
getMaxElementsin interfaceCacheableService- Returns:
- The max elements
-
getTimeToLive
public long getTimeToLive()
Returns the time to live for objects in the cache- Specified by:
getTimeToLivein interfaceCacheableService- Returns:
- The time to live in seconds
-
getMemorySize
public long getMemorySize()
Return the memory size- Specified by:
getMemorySizein interfaceCacheableService- Returns:
- the memory size
-
getInfos
public java.lang.String getInfos()
Returns cache infos- Specified by:
getInfosin interfaceCacheableService- Returns:
- cache infos
-
-