Class LuteceCacheParameterHolder
java.lang.Object
fr.paris.lutece.portal.service.cache.LuteceCacheParameterHolder
- Type Parameters:
K- the type of keys maintained by this cacheV- the type of mapped values
Configuration class for LuteceCache.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the name of the cache.javax.cache.configuration.ConfigurationGets the configuration of the cache.booleanisEnable()Gets the value of the `_bEnable` field.booleanvoidsetCacheName(String cacheName) Sets the name of the cache.voidsetConfig(javax.cache.configuration.Configuration<?, ?> conf) Sets the configuration of the cache.voidsetEnable(boolean enable) Sets the value of the `_bEnable` field.
-
Constructor Details
-
LuteceCacheParameterHolder
public LuteceCacheParameterHolder()
-
-
Method Details
-
getCacheName
Gets the name of the cache.- Returns:
- the name of the cache
-
setCacheName
Sets the name of the cache.- Parameters:
cacheName- the name of the cache
-
getConfig
public javax.cache.configuration.Configuration getConfig()Gets the configuration of the cache.- Returns:
- the configuration of the cache
-
setConfig
public void setConfig(javax.cache.configuration.Configuration<?, ?> conf) Sets the configuration of the cache.- Parameters:
conf- the configuration of the cache
-
isEnable
public boolean isEnable()Gets the value of the `_bEnable` field.- Returns:
trueif the feature is enabled,falseotherwise.
-
setEnable
public void setEnable(boolean enable) Sets the value of the `_bEnable` field.- Parameters:
enable-trueto enable the feature,falseto disable it.
-
isPreventGlobalReset
public boolean isPreventGlobalReset()
-