Class TypesafeConfigurator.Configurator<K,​V>

  • Enclosing class:
    TypesafeConfigurator

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

      Fields 
      Modifier and Type Field Description
      (package private) CaffeineConfiguration<K,​V> configuration  
      (package private) com.typesafe.config.Config customized  
      (package private) com.typesafe.config.Config merged  
      (package private) com.typesafe.config.Config root  
    • Constructor Summary

      Constructors 
      Constructor Description
      Configurator​(com.typesafe.config.Config config, java.lang.String cacheName)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addEagerExpiration()
      Adds the Caffeine eager expiration settings.
      void addExecutor()
      Adds the executor settings.
      private void addKeyValueTypes()
      Adds the key and value class types.
      void addLazyExpiration()
      Adds the JCache specification's lazy expiration settings.
      private void addListeners()
      Adds the entry listeners settings.
      private void addMaximum()
      Adds the maximum size and weight bounding settings.
      private void addMonitoring()
      Adds the monitoring settings.
      private void addReadThrough()
      Adds the read through settings.
      void addRefresh()
      Adds the Caffeine refresh settings.
      void addScheduler()
      Adds the scheduler settings.
      private void addStoreByValue()
      Adds the store-by-value settings.
      private void addWriteThrough()
      Adds the write through settings.
      (package private) CaffeineConfiguration<K,​V> configure()
      Returns a configuration built from the external settings.
      private @Nullable javax.cache.expiry.Duration getDurationFor​(java.lang.String path)
      Returns the duration for the expiration time.
      private boolean isSet​(java.lang.String path)
      Returns if the value is present (not unset by the cache configuration).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • customized

        final com.typesafe.config.Config customized
      • merged

        final com.typesafe.config.Config merged
      • root

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

      • Configurator

        Configurator​(com.typesafe.config.Config config,
                     java.lang.String cacheName)
    • Method Detail

      • 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​(java.lang.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​(java.lang.String path)
        Returns if the value is present (not unset by the cache configuration).