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
-
-
Field Summary
Fields Modifier and Type Field Description static InternalConfigINTERNAL_CONFIG_DEFAULT
-
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.operation.SchedulercreateScheduler()Create a new scheduler instance which must be closed.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.default InternalConfiginternalConfig()Return internal config section or default fallback.
-
-
-
Field Detail
-
INTERNAL_CONFIG_DEFAULT
static final InternalConfig INTERNAL_CONFIG_DEFAULT
-
-
Method Detail
-
getTimeReference
org.cache2k.operation.TimeReference getTimeReference()
The time reference for the cache.
-
getExecutor
Executor getExecutor()
-
createScheduler
org.cache2k.operation.Scheduler createScheduler()
Create a new scheduler instance which must be closed.
-
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)
-
internalConfig
default InternalConfig internalConfig()
Return internal config section or default fallback.
-
-