akka.dispatch
Class CachingConfig
java.lang.Object
akka.dispatch.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 Summary |
CachingConfig(com.typesafe.config.Config _config)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CachingConfig
public CachingConfig(com.typesafe.config.Config _config)
emptyConfig
public static com.typesafe.config.Config emptyConfig()
invalidPathEntry
public static CachingConfig.ValuePathEntry invalidPathEntry()
nonExistingPathEntry
public static CachingConfig.ValuePathEntry nonExistingPathEntry()
emptyPathEntry
public static CachingConfig.ValuePathEntry emptyPathEntry()
checkValid
public void checkValid(com.typesafe.config.Config reference,
scala.collection.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
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
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
checkValid
public void checkValid(com.typesafe.config.Config reference,
java.lang.String[] restrictToPaths)
- Specified by:
checkValid
in interface com.typesafe.config.Config