public class XmlTransformerCacheService extends Object implements CacheableService
| Constructor and Description |
|---|
XmlTransformerCacheService() |
| Modifier and Type | Method and Description |
|---|---|
void |
enableCache(boolean bEnable)
Enable the cache
|
int |
getCacheSize()
Gets the number of item currently in the cache.
|
String |
getInfos()
Returns cache infos
|
List<String> |
getKeys()
Gets all keys in the cache
|
int |
getMaxElements()
Returns maximum elements accepted into the cache
|
long |
getMemorySize()
Return the memory size
|
String |
getName()
Returns the Service name
|
long |
getTimeToLive()
Returns the time to live for objects in the cache
|
static void |
init()
Inits the.
|
boolean |
isCacheEnable()
Gets the current cache status.
|
void |
resetCache()
Reset the cache.
|
public static void init()
public String getName()
getName in interface LuteceServicepublic boolean isCacheEnable()
isCacheEnable in interface CacheableServicepublic int getCacheSize()
getCacheSize in interface CacheableServicepublic void resetCache()
resetCache in interface CacheableServicepublic void enableCache(boolean bEnable)
enableCache in interface CacheableServicebEnable - true to enable, false to disablepublic List<String> getKeys()
getKeys in interface CacheableServicepublic int getMaxElements()
getMaxElements in interface CacheableServicepublic long getTimeToLive()
getTimeToLive in interface CacheableServicepublic long getMemorySize()
getMemorySize in interface CacheableServicepublic String getInfos()
getInfos in interface CacheableServiceCopyright © 2020 City of Paris. All rights reserved.