Package org.cache2k.jcache
Class ExtendedMutableConfiguration<K,V>
- java.lang.Object
-
- javax.cache.configuration.MutableConfiguration<K,V>
-
- org.cache2k.jcache.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
-
-
Constructor Summary
Constructors Constructor Description ExtendedMutableConfiguration()
-
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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
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 fromMutableConfiguration
. 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
-
of
public static <K,V> ExtendedMutableConfiguration<K,V> of(org.cache2k.config.Cache2kConfig<K,V> configuration)
-
getCache2kConfiguration
public org.cache2k.config.Cache2kConfig<K,V> getCache2kConfiguration()
Description copied from interface:ExtendedConfiguration
Retrieve the extended cache2k configuration.- Specified by:
getCache2kConfiguration
in interfaceExtendedConfiguration<K,V>
- Returns:
- cache2k configuration or null, if not needed
-
-