Class ExtendedMutableConfiguration<K,​V>

  • All Implemented Interfaces:
    Serializable, javax.cache.configuration.CompleteConfiguration<K,​V>, javax.cache.configuration.Configuration<K,​V>, ExtendedConfiguration<K,​V>

    public final class ExtendedMutableConfiguration<K,​V>
    extends javax.cache.configuration.MutableConfiguration<K,​V>
    implements ExtendedConfiguration<K,​V>
    Extends the JCache mutable configuration with an additional cache2k configuration.
    Author:
    Jens Wilke
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class javax.cache.configuration.MutableConfiguration

        cacheLoaderFactory, cacheWriterFactory, expiryPolicyFactory, isManagementEnabled, isReadThrough, isStatisticsEnabled, isStoreByValue, isWriteThrough, keyType, listenerConfigurations, serialVersionUID, valueType
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.cache2k.config.Cache2kConfig<K,​V> getCache2kConfiguration()
      Retrieve the extended cache2k configuration.
      static <K,​V>
      ExtendedMutableConfiguration<K,​V>
      of​(org.cache2k.Cache2kBuilder<K,​V> builder)
      The preferred way to construct a JCache based on a cache2k configuration.
      static <K,​V>
      ExtendedMutableConfiguration<K,​V>
      of​(org.cache2k.config.Cache2kConfig<K,​V> configuration)  
      void setCache2kConfiguration​(org.cache2k.config.Cache2kConfig<K,​V> cache2kConfiguration)  
      • Methods inherited from class javax.cache.configuration.MutableConfiguration

        addCacheEntryListenerConfiguration, equals, getCacheEntryListenerConfigurations, getCacheLoaderFactory, getCacheWriterFactory, getExpiryPolicyFactory, getKeyType, getValueType, hashCode, isManagementEnabled, isReadThrough, isStatisticsEnabled, isStoreByValue, isWriteThrough, removeCacheEntryListenerConfiguration, setCacheLoaderFactory, setCacheWriterFactory, setExpiryPolicyFactory, setManagementEnabled, setReadThrough, setStatisticsEnabled, setStoreByValue, setTypes, setWriteThrough
      • Methods inherited from interface javax.cache.configuration.CompleteConfiguration

        getCacheEntryListenerConfigurations, getCacheLoaderFactory, getCacheWriterFactory, getExpiryPolicyFactory, isManagementEnabled, isReadThrough, isStatisticsEnabled, isWriteThrough
      • Methods inherited from interface javax.cache.configuration.Configuration

        getKeyType, getValueType, isStoreByValue
    • Constructor Detail

      • ExtendedMutableConfiguration

        public ExtendedMutableConfiguration()
    • Method Detail

      • of

        public static <K,​V> ExtendedMutableConfiguration<K,​V> of​(org.cache2k.Cache2kBuilder<K,​V> builder)
        The preferred way to construct a JCache based on a cache2k configuration. It is not needed to set any original parameters from MutableConfiguration. It is possible to set parameters defined by JCache, e.g. MutableConfiguration.setCacheLoaderFactory(Factory). In this case the settings will be merged. See the documentation.
        See Also:
        User Guide - JCache
      • setCache2kConfiguration

        public void setCache2kConfiguration​(org.cache2k.config.Cache2kConfig<K,​V> cache2kConfiguration)