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 Detail

      • INTERNAL_CONFIG_DEFAULT

        static final InternalConfig INTERNAL_CONFIG_DEFAULT
    • Method Detail

      • getTimeReference

        org.cache2k.operation.TimeReference getTimeReference()
        The time reference for the cache.
        Specified by:
        getTimeReference in interface org.cache2k.config.CacheBuildContext<K,​V>
      • getExecutor

        Executor getExecutor()
        Specified by:
        getExecutor in interface org.cache2k.config.CacheBuildContext<K,​V>
      • createScheduler

        org.cache2k.operation.Scheduler createScheduler()
        Create a new scheduler instance which must be closed.
      • getConfig

        org.cache2k.config.Cache2kConfig<K,​V> getConfig()
        Cache configuration.
        Specified by:
        getConfig in interface org.cache2k.config.CacheBuildContext<K,​V>
      • getCacheManager

        org.cache2k.CacheManager getCacheManager()
        The cache manager.
        Specified by:
        getCacheManager in interface org.cache2k.config.CacheBuildContext<K,​V>
      • 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.
        Specified by:
        createCustomization in interface org.cache2k.config.CacheBuildContext<K,​V>
      • 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.