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 LuteceService
public boolean isCacheEnable()
isCacheEnable
in interface CacheableService
public int getCacheSize()
getCacheSize
in interface CacheableService
public void resetCache()
resetCache
in interface CacheableService
public void enableCache(boolean bEnable)
enableCache
in interface CacheableService
bEnable
- true to enable, false to disablepublic List<String> getKeys()
getKeys
in interface CacheableService
public int getMaxElements()
getMaxElements
in interface CacheableService
public long getTimeToLive()
getTimeToLive
in interface CacheableService
public long getMemorySize()
getMemorySize
in interface CacheableService
public String getInfos()
getInfos
in interface CacheableService
Copyright © 2020 City of Paris. All rights reserved.