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 class
InternalCache2kBuilder.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> T
createCustomization(org.cache2k.config.CustomizationSupplier<T> supplier)
Create the customization.org.cache2k.CacheManager
getCacheManager()
The cache manager.org.cache2k.config.Cache2kConfig<K,V>
getConfig()
Cache configuration.Executor
getExecutor()
String
getName()
org.cache2k.operation.TimeReference
getTimeReference()
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:InternalCacheBuildContext
The time reference for the cache.- Specified by:
getTimeReference
in interfaceorg.cache2k.config.CacheBuildContext<K,V>
- Specified by:
getTimeReference
in interfaceInternalCacheBuildContext<K,V>
-
getExecutor
public Executor getExecutor()
- Specified by:
getExecutor
in interfaceorg.cache2k.config.CacheBuildContext<K,V>
- Specified by:
getExecutor
in interfaceInternalCacheBuildContext<K,V>
-
getConfig
public org.cache2k.config.Cache2kConfig<K,V> getConfig()
Description copied from interface:InternalCacheBuildContext
Cache configuration.
-
getCacheManager
public org.cache2k.CacheManager getCacheManager()
Description copied from interface:InternalCacheBuildContext
The cache manager.- Specified by:
getCacheManager
in interfaceorg.cache2k.config.CacheBuildContext<K,V>
- Specified by:
getCacheManager
in interfaceInternalCacheBuildContext<K,V>
-
createCustomization
public <T> T createCustomization(org.cache2k.config.CustomizationSupplier<T> supplier)
Description copied from interface:InternalCacheBuildContext
Create the customization. Returns null if supplier is null.- Specified by:
createCustomization
in interfaceorg.cache2k.config.CacheBuildContext<K,V>
- Specified by:
createCustomization
in interfaceInternalCacheBuildContext<K,V>
-
-