Package org.cache2k.config
Class Cache2kManagerConfig
- java.lang.Object
-
- org.cache2k.config.Cache2kManagerConfig
-
- All Implemented Interfaces:
BeanMarker,ConfigBean<Cache2kManagerConfig,Cache2kManagerConfig.Builder>
public class Cache2kManagerConfig extends Object implements ConfigBean<Cache2kManagerConfig,Cache2kManagerConfig.Builder>
Configuration options for a cache manager. The options can only be changed if an XML file is provided. This bean is in the API artifact for documentation purposes.- Author:
- Jens Wilke
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCache2kManagerConfig.Builder
-
Constructor Summary
Constructors Constructor Description Cache2kManagerConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Cache2kManagerConfig.Builderbuilder()Not supported, but will eventually get one.@Nullable StringgetDefaultManagerName()@Nullable StringgetVersion()booleanisIgnoreAnonymousCache()booleanisIgnoreMissingCacheConfiguration()booleanisSkipCheckOnStartup()voidsetDefaultManagerName(String v)Replace the default name of the default cache manager.voidsetIgnoreAnonymousCache(boolean f)When a configuration is present, every cache needs a cache name so that the configuration can be applied.voidsetIgnoreMissingCacheConfiguration(boolean f)Configure a cache with default parameters if configuration has no specific section for it.voidsetSkipCheckOnStartup(boolean f)The configuration for each cache is parsed and checked as soon as the cache manager is created.voidsetVersion(String v)Version of the configuration.
-
-
-
Method Detail
-
isIgnoreMissingCacheConfiguration
public boolean isIgnoreMissingCacheConfiguration()
-
setIgnoreMissingCacheConfiguration
public void setIgnoreMissingCacheConfiguration(boolean f)
Configure a cache with default parameters if configuration has no specific section for it.
-
setDefaultManagerName
public void setDefaultManagerName(String v)
Replace the default name of the default cache manager.
-
setVersion
public void setVersion(String v)
Version of the configuration. Mandatory in every cache configuration. The version affects how the configuration XML file is interpreted.
-
isSkipCheckOnStartup
public boolean isSkipCheckOnStartup()
-
setSkipCheckOnStartup
public void setSkipCheckOnStartup(boolean f)
The configuration for each cache is parsed and checked as soon as the cache manager is created.
-
isIgnoreAnonymousCache
public boolean isIgnoreAnonymousCache()
-
setIgnoreAnonymousCache
public void setIgnoreAnonymousCache(boolean f)
When a configuration is present, every cache needs a cache name so that the configuration can be applied.
-
builder
public Cache2kManagerConfig.Builder builder()
Not supported, but will eventually get one.- Specified by:
builderin interfaceConfigBean<Cache2kManagerConfig,Cache2kManagerConfig.Builder>
-
-