Package org.cache2k.core
Class InternalCache2kBuilder<K,V>
- java.lang.Object
-
- org.cache2k.core.InternalCache2kBuilder<K,V>
-
- All Implemented Interfaces:
org.cache2k.config.CacheBuildContext<K,V>,InternalCacheBuildContext<K,V>
public class InternalCache2kBuilder<K,V> extends Object implements InternalCacheBuildContext<K,V>
Method object to construct a cache2k cache.- Author:
- Jens Wilke
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInternalCache2kBuilder.WrappedAdvancedCacheLoader<K,V>Starting with 2.0 we don't send an entry with an exception to the loader.
-
Constructor Summary
Constructors Constructor Description InternalCache2kBuilder(org.cache2k.config.Cache2kConfig<K,V> config, org.cache2k.CacheManager manager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.cache2k.Cache<K,V>build()org.cache2k.Cache<K,V>buildWithoutExternalConfig()Build without applying external configuration.<T> TcreateCustomization(org.cache2k.config.CustomizationSupplier<T> supplier)Create the customization.org.cache2k.CacheManagergetCacheManager()The cache manager.org.cache2k.config.Cache2kConfig<K,V>getConfig()Cache configuration.ExecutorgetExecutor()StringgetName()org.cache2k.operation.TimeReferencegetTimeReference()The time reference for the cache.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.cache2k.core.api.InternalCacheBuildContext
createCustomization, createCustomization
-
-
-
-
Method Detail
-
getName
public String getName()
-
getTimeReference
public org.cache2k.operation.TimeReference getTimeReference()
Description copied from interface:InternalCacheBuildContextThe time reference for the cache.- Specified by:
getTimeReferencein interfaceorg.cache2k.config.CacheBuildContext<K,V>- Specified by:
getTimeReferencein interfaceInternalCacheBuildContext<K,V>
-
getExecutor
public Executor getExecutor()
- Specified by:
getExecutorin interfaceorg.cache2k.config.CacheBuildContext<K,V>- Specified by:
getExecutorin interfaceInternalCacheBuildContext<K,V>
-
getConfig
public org.cache2k.config.Cache2kConfig<K,V> getConfig()
Description copied from interface:InternalCacheBuildContextCache configuration.
-
getCacheManager
public org.cache2k.CacheManager getCacheManager()
Description copied from interface:InternalCacheBuildContextThe cache manager.- Specified by:
getCacheManagerin interfaceorg.cache2k.config.CacheBuildContext<K,V>- Specified by:
getCacheManagerin interfaceInternalCacheBuildContext<K,V>
-
createCustomization
public <T> T createCustomization(org.cache2k.config.CustomizationSupplier<T> supplier)
Description copied from interface:InternalCacheBuildContextCreate the customization. Returns null if supplier is null.- Specified by:
createCustomizationin interfaceorg.cache2k.config.CacheBuildContext<K,V>- Specified by:
createCustomizationin interfaceInternalCacheBuildContext<K,V>
-
-