Package org.cache2k.core.api
Interface InternalCacheBuildContext<K,V>
-
- All Superinterfaces:
org.cache2k.config.CacheBuildContext<K,V>
- All Known Implementing Classes:
InternalCache2kBuilder
public interface InternalCacheBuildContext<K,V> extends org.cache2k.config.CacheBuildContext<K,V>Context information when a cache is build.- Author:
- Jens Wilke
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default <T> TcreateCustomization(org.cache2k.config.CustomizationSupplier<? extends T> supplier, org.cache2k.config.CustomizationSupplier<? extends T> fallback)default <T> TcreateCustomization(org.cache2k.config.CustomizationSupplier<? extends T> supplier, T fallback)Create the customization.<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()org.cache2k.operation.TimeReferencegetTimeReference()The time reference for the cache.
-
-
-
Method Detail
-
getTimeReference
org.cache2k.operation.TimeReference getTimeReference()
The time reference for the cache.
-
getExecutor
Executor getExecutor()
-
getCacheManager
org.cache2k.CacheManager getCacheManager()
The cache manager.
-
createCustomization
default <T> T createCustomization(org.cache2k.config.CustomizationSupplier<? extends T> supplier, T fallback)Create the customization. Return fallback if supplier is null.
-
createCustomization
<T> T createCustomization(org.cache2k.config.CustomizationSupplier<T> supplier)
Create the customization. Returns null if supplier is null.
-
createCustomization
default <T> T createCustomization(org.cache2k.config.CustomizationSupplier<? extends T> supplier, org.cache2k.config.CustomizationSupplier<? extends T> fallback)
-
-