Class TypesafeConfigurator.Configurator<K,V>

java.lang.Object
com.github.benmanes.caffeine.jcache.configuration.TypesafeConfigurator.Configurator<K,V>
Enclosing class:
TypesafeConfigurator

private static final class TypesafeConfigurator.Configurator<K,V> extends Object
A one-shot builder for creating a configuration instance.
  • Field Details

    • configuration

      final CaffeineConfiguration<K,V> configuration
    • customized

      final com.typesafe.config.Config customized
    • merged

      final com.typesafe.config.Config merged
    • root

      final com.typesafe.config.Config root
  • Constructor Details

    • Configurator

      Configurator(com.typesafe.config.Config config, String cacheName)
  • Method Details

    • configure

      CaffeineConfiguration<K,V> configure()
      Returns a configuration built from the external settings.
    • addKeyValueTypes

      private void addKeyValueTypes()
      Adds the key and value class types.
    • addStoreByValue

      private void addStoreByValue()
      Adds the store-by-value settings.
    • addExecutor

      public void addExecutor()
      Adds the executor settings.
    • addScheduler

      public void addScheduler()
      Adds the scheduler settings.
    • addListeners

      private void addListeners()
      Adds the entry listeners settings.
    • addReadThrough

      private void addReadThrough()
      Adds the read through settings.
    • addWriteThrough

      private void addWriteThrough()
      Adds the write through settings.
    • addMonitoring

      private void addMonitoring()
      Adds the monitoring settings.
    • addLazyExpiration

      public void addLazyExpiration()
      Adds the JCache specification's lazy expiration settings.
    • getDurationFor

      private @Nullable javax.cache.expiry.Duration getDurationFor(String path)
      Returns the duration for the expiration time.
    • addEagerExpiration

      public void addEagerExpiration()
      Adds the Caffeine eager expiration settings.
    • addRefresh

      public void addRefresh()
      Adds the Caffeine refresh settings.
    • addMaximum

      private void addMaximum()
      Adds the maximum size and weight bounding settings.
    • isSet

      private boolean isSet(String path)
      Returns if the value is present (not unset by the cache configuration).