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> T createCustomization​(org.cache2k.config.CustomizationSupplier<? extends T> supplier, org.cache2k.config.CustomizationSupplier<? extends T> fallback)  
      default <T> T createCustomization​(org.cache2k.config.CustomizationSupplier<? extends T> supplier, T fallback)
      Create the customization.
      <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()  
      org.cache2k.operation.TimeReference getTimeReference()
      The time reference for the cache.
      • Methods inherited from interface org.cache2k.config.CacheBuildContext

        getName
    • 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>
      • 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)