Package akka.dispatch

Class CachingConfig

  • All Implemented Interfaces:
    com.typesafe.config.Config, com.typesafe.config.ConfigMergeable

    public class CachingConfig
    extends java.lang.Object
    implements com.typesafe.config.Config
    INTERNAL API

    A CachingConfig is a Config that wraps another Config and is used to cache path lookup and string retrieval, which we happen to do a lot in some critical paths of the actor creation and mailbox selection code.

    All other Config operations are delegated to the wrapped Config.

    • Constructor Detail

      • CachingConfig

        public CachingConfig​(com.typesafe.config.Config _config)
    • Method Detail

      • emptyConfig

        public static com.typesafe.config.Config emptyConfig()
      • checkValid

        public void checkValid​(com.typesafe.config.Config reference,
                               scala.collection.immutable.Seq<java.lang.String> restrictToPaths)
      • root

        public com.typesafe.config.ConfigObject root()
        Specified by:
        root in interface com.typesafe.config.Config
      • origin

        public com.typesafe.config.ConfigOrigin origin()
        Specified by:
        origin in interface com.typesafe.config.Config
      • withFallback

        public CachingConfig withFallback​(com.typesafe.config.ConfigMergeable other)
        Specified by:
        withFallback in interface com.typesafe.config.Config
        Specified by:
        withFallback in interface com.typesafe.config.ConfigMergeable
      • resolve

        public com.typesafe.config.Config resolve()
        Specified by:
        resolve in interface com.typesafe.config.Config
      • resolve

        public com.typesafe.config.Config resolve​(com.typesafe.config.ConfigResolveOptions options)
        Specified by:
        resolve in interface com.typesafe.config.Config
      • hasPath

        public boolean hasPath​(java.lang.String path)
        Specified by:
        hasPath in interface com.typesafe.config.Config
      • hasPathOrNull

        public boolean hasPathOrNull​(java.lang.String path)
        Specified by:
        hasPathOrNull in interface com.typesafe.config.Config
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface com.typesafe.config.Config
      • entrySet

        public java.util.Set<java.util.Map.Entry<java.lang.String,​com.typesafe.config.ConfigValue>> entrySet()
        Specified by:
        entrySet in interface com.typesafe.config.Config
      • getBoolean

        public boolean getBoolean​(java.lang.String path)
        Specified by:
        getBoolean in interface com.typesafe.config.Config
      • getNumber

        public java.lang.Number getNumber​(java.lang.String path)
        Specified by:
        getNumber in interface com.typesafe.config.Config
      • getInt

        public int getInt​(java.lang.String path)
        Specified by:
        getInt in interface com.typesafe.config.Config
      • getLong

        public long getLong​(java.lang.String path)
        Specified by:
        getLong in interface com.typesafe.config.Config
      • getDouble

        public double getDouble​(java.lang.String path)
        Specified by:
        getDouble in interface com.typesafe.config.Config
      • getString

        public java.lang.String getString​(java.lang.String path)
        Specified by:
        getString in interface com.typesafe.config.Config
      • getObject

        public com.typesafe.config.ConfigObject getObject​(java.lang.String path)
        Specified by:
        getObject in interface com.typesafe.config.Config
      • getConfig

        public com.typesafe.config.Config getConfig​(java.lang.String path)
        Specified by:
        getConfig in interface com.typesafe.config.Config
      • getAnyRef

        public java.lang.Object getAnyRef​(java.lang.String path)
        Specified by:
        getAnyRef in interface com.typesafe.config.Config
      • getValue

        public com.typesafe.config.ConfigValue getValue​(java.lang.String path)
        Specified by:
        getValue in interface com.typesafe.config.Config
      • getBytes

        public java.lang.Long getBytes​(java.lang.String path)
        Specified by:
        getBytes in interface com.typesafe.config.Config
      • getMilliseconds

        public java.lang.Long getMilliseconds​(java.lang.String path)
        Specified by:
        getMilliseconds in interface com.typesafe.config.Config
      • getNanoseconds

        public java.lang.Long getNanoseconds​(java.lang.String path)
        Specified by:
        getNanoseconds in interface com.typesafe.config.Config
      • getList

        public com.typesafe.config.ConfigList getList​(java.lang.String path)
        Specified by:
        getList in interface com.typesafe.config.Config
      • getBooleanList

        public java.util.List<java.lang.Boolean> getBooleanList​(java.lang.String path)
        Specified by:
        getBooleanList in interface com.typesafe.config.Config
      • getNumberList

        public java.util.List<java.lang.Number> getNumberList​(java.lang.String path)
        Specified by:
        getNumberList in interface com.typesafe.config.Config
      • getIntList

        public java.util.List<java.lang.Integer> getIntList​(java.lang.String path)
        Specified by:
        getIntList in interface com.typesafe.config.Config
      • getLongList

        public java.util.List<java.lang.Long> getLongList​(java.lang.String path)
        Specified by:
        getLongList in interface com.typesafe.config.Config
      • getDoubleList

        public java.util.List<java.lang.Double> getDoubleList​(java.lang.String path)
        Specified by:
        getDoubleList in interface com.typesafe.config.Config
      • getStringList

        public java.util.List<java.lang.String> getStringList​(java.lang.String path)
        Specified by:
        getStringList in interface com.typesafe.config.Config
      • getObjectList

        public java.util.List<? extends com.typesafe.config.ConfigObject> getObjectList​(java.lang.String path)
        Specified by:
        getObjectList in interface com.typesafe.config.Config
      • getConfigList

        public java.util.List<? extends com.typesafe.config.Config> getConfigList​(java.lang.String path)
        Specified by:
        getConfigList in interface com.typesafe.config.Config
      • getAnyRefList

        public java.util.List<?> getAnyRefList​(java.lang.String path)
        Specified by:
        getAnyRefList in interface com.typesafe.config.Config
      • getBytesList

        public java.util.List<java.lang.Long> getBytesList​(java.lang.String path)
        Specified by:
        getBytesList in interface com.typesafe.config.Config
      • getMillisecondsList

        public java.util.List<java.lang.Long> getMillisecondsList​(java.lang.String path)
        Specified by:
        getMillisecondsList in interface com.typesafe.config.Config
      • getNanosecondsList

        public java.util.List<java.lang.Long> getNanosecondsList​(java.lang.String path)
        Specified by:
        getNanosecondsList in interface com.typesafe.config.Config
      • withOnlyPath

        public CachingConfig withOnlyPath​(java.lang.String path)
        Specified by:
        withOnlyPath in interface com.typesafe.config.Config
      • withoutPath

        public CachingConfig withoutPath​(java.lang.String path)
        Specified by:
        withoutPath in interface com.typesafe.config.Config
      • atPath

        public CachingConfig atPath​(java.lang.String path)
        Specified by:
        atPath in interface com.typesafe.config.Config
      • atKey

        public CachingConfig atKey​(java.lang.String key)
        Specified by:
        atKey in interface com.typesafe.config.Config
      • withValue

        public CachingConfig withValue​(java.lang.String path,
                                       com.typesafe.config.ConfigValue value)
        Specified by:
        withValue in interface com.typesafe.config.Config
      • getDuration

        public long getDuration​(java.lang.String path,
                                java.util.concurrent.TimeUnit unit)
        Specified by:
        getDuration in interface com.typesafe.config.Config
      • getDurationList

        public java.util.List<java.lang.Long> getDurationList​(java.lang.String path,
                                                              java.util.concurrent.TimeUnit unit)
        Specified by:
        getDurationList in interface com.typesafe.config.Config
      • getDuration

        public java.time.Duration getDuration​(java.lang.String path)
        Specified by:
        getDuration in interface com.typesafe.config.Config
      • getDurationList

        public java.util.List<java.time.Duration> getDurationList​(java.lang.String path)
        Specified by:
        getDurationList in interface com.typesafe.config.Config
      • getPeriod

        public java.time.Period getPeriod​(java.lang.String path)
        Specified by:
        getPeriod in interface com.typesafe.config.Config
      • getTemporal

        public java.time.temporal.TemporalAmount getTemporal​(java.lang.String path)
        Specified by:
        getTemporal in interface com.typesafe.config.Config
      • getIsNull

        public boolean getIsNull​(java.lang.String path)
        Specified by:
        getIsNull in interface com.typesafe.config.Config
      • getMemorySize

        public com.typesafe.config.ConfigMemorySize getMemorySize​(java.lang.String path)
        Specified by:
        getMemorySize in interface com.typesafe.config.Config
      • getMemorySizeList

        public java.util.List<com.typesafe.config.ConfigMemorySize> getMemorySizeList​(java.lang.String path)
        Specified by:
        getMemorySizeList in interface com.typesafe.config.Config
      • isResolved

        public boolean isResolved()
        Specified by:
        isResolved in interface com.typesafe.config.Config
      • resolveWith

        public com.typesafe.config.Config resolveWith​(com.typesafe.config.Config source,
                                                      com.typesafe.config.ConfigResolveOptions options)
        Specified by:
        resolveWith in interface com.typesafe.config.Config
      • resolveWith

        public com.typesafe.config.Config resolveWith​(com.typesafe.config.Config source)
        Specified by:
        resolveWith in interface com.typesafe.config.Config
      • getEnumList

        public <T extends java.lang.Enum<T>> java.util.List<T> getEnumList​(java.lang.Class<T> enumClass,
                                                                           java.lang.String path)
        Specified by:
        getEnumList in interface com.typesafe.config.Config
      • getEnum

        public <T extends java.lang.Enum<T>> T getEnum​(java.lang.Class<T> enumClass,
                                                       java.lang.String path)
        Specified by:
        getEnum in interface com.typesafe.config.Config
      • checkValid

        public void checkValid​(com.typesafe.config.Config reference,
                               java.lang.String[] restrictToPaths)
        Specified by:
        checkValid in interface com.typesafe.config.Config