Class Cache2kConfig<K,​V>

  • All Implemented Interfaces:
    BeanMarker, ConfigBean<Cache2kConfig<K,​V>,​Cache2kBuilder<K,​V>>, ConfigWithSections, DataAware<K,​V>

    public class Cache2kConfig<K,​V>
    extends Object
    implements ConfigBean<Cache2kConfig<K,​V>,​Cache2kBuilder<K,​V>>, DataAware<K,​V>, ConfigWithSections
    Configuration for a cache2k cache.

    To create a cache, the Cache2kBuilder is used. All configuration properties are present on the builder and are documented in this place. Consequently, all properties refer to the corresponding builder method.

    The configuration bean is designed to be serializable. This is used for example to copy default configurations. The builder allows object references to customizations to be set. If this happens the configuration is not serializable. Such configuration is only used for immediate creation of one cache via the builder.

    The configuration may contain additional beans, called configuration sections, that are used to configure extensions.

    Within the XML configuration of a cache manager different default configuration values may be specified. To get a configuration bean with the effective defaults of a specific manager do Cache2kBuilder.forUnknownTypes().manager(...).toConfiguration()

    Jens Wilke