Interface CacheBuildContext<K,​V>


  • public interface CacheBuildContext<K,​V>
    Access to configuration and cache manager properties during the construction of the cache object.
    Author:
    Jens Wilke
    • Method Detail

      • getTimeReference

        TimeReference getTimeReference()
        Time reference to use for this cache instance.
        Throws:
        IllegalStateException - if this method is called within the supplier of the time reference or executor.
      • getExecutor

        Executor getExecutor()
        Executor to use for this cache instance.
        Throws:
        IllegalStateException - if this method is called within the supplier of the time reference or executor.
      • getConfig

        Cache2kConfig<K,​V> getConfig()
        The effective cache configuration. The data is only valid within the call. Customizations must copy the relevant configuration parameters and not hold a reference to the configuration object.