Class XmlTransformerCacheService
java.lang.Object
fr.paris.lutece.portal.service.html.XmlTransformerCacheService
- All Implemented Interfaces:
CacheableService,LuteceService
XmlTransformerCacheService
- Since:
- v 3.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidenableCache(boolean bEnable) Enable the cacheintGets the number of item currently in the cache.getInfos()Returns cache infosgetKeys()Gets all keys in the cacheintReturns maximum elements accepted into the cachelongReturn the memory sizegetName()Returns the Service namelongReturns the time to live for objects in the cachestatic voidinit()Inits the.booleanGets the current cache status.voidReset the cache.
-
Constructor Details
-
XmlTransformerCacheService
public XmlTransformerCacheService()
-
-
Method Details
-
init
public static void init()Inits the. -
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
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
Returns cache infos- Specified by:
getInfosin interfaceCacheableService- Returns:
- cache infos
-