public class CachingConfig
extends java.lang.Object
implements com.typesafe.config.Config
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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CachingConfig.PathEntry |
static class |
CachingConfig.StringPathEntry |
static class |
CachingConfig.StringPathEntry$ |
static class |
CachingConfig.ValuePathEntry |
static class |
CachingConfig.ValuePathEntry$ |
| Constructor and Description |
|---|
CachingConfig(com.typesafe.config.Config _config) |
| Modifier and Type | Method and Description |
|---|---|
CachingConfig |
atKey(java.lang.String key) |
CachingConfig |
atPath(java.lang.String path) |
void |
checkValid(com.typesafe.config.Config reference,
scala.collection.Seq<java.lang.String> restrictToPaths) |
void |
checkValid(com.typesafe.config.Config reference,
java.lang.String[] restrictToPaths) |
static com.typesafe.config.Config |
emptyConfig() |
static CachingConfig.ValuePathEntry |
emptyPathEntry() |
java.util.Set<java.util.Map.Entry<java.lang.String,com.typesafe.config.ConfigValue>> |
entrySet() |
java.lang.Object |
getAnyRef(java.lang.String path) |
java.util.List<?> |
getAnyRefList(java.lang.String path) |
boolean |
getBoolean(java.lang.String path) |
java.util.List<java.lang.Boolean> |
getBooleanList(java.lang.String path) |
java.lang.Long |
getBytes(java.lang.String path) |
java.util.List<java.lang.Long> |
getBytesList(java.lang.String path) |
com.typesafe.config.Config |
getConfig(java.lang.String path) |
java.util.List<? extends com.typesafe.config.Config> |
getConfigList(java.lang.String path) |
double |
getDouble(java.lang.String path) |
java.util.List<java.lang.Double> |
getDoubleList(java.lang.String path) |
long |
getDuration(java.lang.String path,
java.util.concurrent.TimeUnit unit) |
java.util.List<java.lang.Long> |
getDurationList(java.lang.String path,
java.util.concurrent.TimeUnit unit) |
int |
getInt(java.lang.String path) |
java.util.List<java.lang.Integer> |
getIntList(java.lang.String path) |
com.typesafe.config.ConfigList |
getList(java.lang.String path) |
long |
getLong(java.lang.String path) |
java.util.List<java.lang.Long> |
getLongList(java.lang.String path) |
java.lang.Long |
getMilliseconds(java.lang.String path) |
java.util.List<java.lang.Long> |
getMillisecondsList(java.lang.String path) |
java.lang.Long |
getNanoseconds(java.lang.String path) |
java.util.List<java.lang.Long> |
getNanosecondsList(java.lang.String path) |
java.lang.Number |
getNumber(java.lang.String path) |
java.util.List<java.lang.Number> |
getNumberList(java.lang.String path) |
com.typesafe.config.ConfigObject |
getObject(java.lang.String path) |
java.util.List<? extends com.typesafe.config.ConfigObject> |
getObjectList(java.lang.String path) |
java.lang.String |
getString(java.lang.String path) |
java.util.List<java.lang.String> |
getStringList(java.lang.String path) |
com.typesafe.config.ConfigValue |
getValue(java.lang.String path) |
boolean |
hasPath(java.lang.String path) |
static CachingConfig.ValuePathEntry |
invalidPathEntry() |
boolean |
isEmpty() |
boolean |
isResolved() |
static CachingConfig.ValuePathEntry |
nonExistingPathEntry() |
com.typesafe.config.ConfigOrigin |
origin() |
com.typesafe.config.Config |
resolve() |
com.typesafe.config.Config |
resolve(com.typesafe.config.ConfigResolveOptions options) |
com.typesafe.config.Config |
resolveWith(com.typesafe.config.Config source) |
com.typesafe.config.Config |
resolveWith(com.typesafe.config.Config source,
com.typesafe.config.ConfigResolveOptions options) |
com.typesafe.config.ConfigObject |
root() |
CachingConfig |
withFallback(com.typesafe.config.ConfigMergeable other) |
CachingConfig |
withOnlyPath(java.lang.String path) |
CachingConfig |
withoutPath(java.lang.String path) |
CachingConfig |
withValue(java.lang.String path,
com.typesafe.config.ConfigValue value) |
public static com.typesafe.config.Config emptyConfig()
public static CachingConfig.ValuePathEntry invalidPathEntry()
public static CachingConfig.ValuePathEntry nonExistingPathEntry()
public static CachingConfig.ValuePathEntry emptyPathEntry()
public void checkValid(com.typesafe.config.Config reference,
scala.collection.Seq<java.lang.String> restrictToPaths)
public com.typesafe.config.ConfigObject root()
root in interface com.typesafe.config.Configpublic com.typesafe.config.ConfigOrigin origin()
origin in interface com.typesafe.config.Configpublic CachingConfig withFallback(com.typesafe.config.ConfigMergeable other)
withFallback in interface com.typesafe.config.ConfigwithFallback in interface com.typesafe.config.ConfigMergeablepublic com.typesafe.config.Config resolve()
resolve in interface com.typesafe.config.Configpublic com.typesafe.config.Config resolve(com.typesafe.config.ConfigResolveOptions options)
resolve in interface com.typesafe.config.Configpublic boolean hasPath(java.lang.String path)
hasPath in interface com.typesafe.config.Configpublic boolean isEmpty()
isEmpty in interface com.typesafe.config.Configpublic java.util.Set<java.util.Map.Entry<java.lang.String,com.typesafe.config.ConfigValue>> entrySet()
entrySet in interface com.typesafe.config.Configpublic boolean getBoolean(java.lang.String path)
getBoolean in interface com.typesafe.config.Configpublic java.lang.Number getNumber(java.lang.String path)
getNumber in interface com.typesafe.config.Configpublic int getInt(java.lang.String path)
getInt in interface com.typesafe.config.Configpublic long getLong(java.lang.String path)
getLong in interface com.typesafe.config.Configpublic double getDouble(java.lang.String path)
getDouble in interface com.typesafe.config.Configpublic java.lang.String getString(java.lang.String path)
getString in interface com.typesafe.config.Configpublic com.typesafe.config.ConfigObject getObject(java.lang.String path)
getObject in interface com.typesafe.config.Configpublic com.typesafe.config.Config getConfig(java.lang.String path)
getConfig in interface com.typesafe.config.Configpublic java.lang.Object getAnyRef(java.lang.String path)
getAnyRef in interface com.typesafe.config.Configpublic com.typesafe.config.ConfigValue getValue(java.lang.String path)
getValue in interface com.typesafe.config.Configpublic java.lang.Long getBytes(java.lang.String path)
getBytes in interface com.typesafe.config.Configpublic java.lang.Long getMilliseconds(java.lang.String path)
getMilliseconds in interface com.typesafe.config.Configpublic java.lang.Long getNanoseconds(java.lang.String path)
getNanoseconds in interface com.typesafe.config.Configpublic com.typesafe.config.ConfigList getList(java.lang.String path)
getList in interface com.typesafe.config.Configpublic java.util.List<java.lang.Boolean> getBooleanList(java.lang.String path)
getBooleanList in interface com.typesafe.config.Configpublic java.util.List<java.lang.Number> getNumberList(java.lang.String path)
getNumberList in interface com.typesafe.config.Configpublic java.util.List<java.lang.Integer> getIntList(java.lang.String path)
getIntList in interface com.typesafe.config.Configpublic java.util.List<java.lang.Long> getLongList(java.lang.String path)
getLongList in interface com.typesafe.config.Configpublic java.util.List<java.lang.Double> getDoubleList(java.lang.String path)
getDoubleList in interface com.typesafe.config.Configpublic java.util.List<java.lang.String> getStringList(java.lang.String path)
getStringList in interface com.typesafe.config.Configpublic java.util.List<? extends com.typesafe.config.ConfigObject> getObjectList(java.lang.String path)
getObjectList in interface com.typesafe.config.Configpublic java.util.List<? extends com.typesafe.config.Config> getConfigList(java.lang.String path)
getConfigList in interface com.typesafe.config.Configpublic java.util.List<?> getAnyRefList(java.lang.String path)
getAnyRefList in interface com.typesafe.config.Configpublic java.util.List<java.lang.Long> getBytesList(java.lang.String path)
getBytesList in interface com.typesafe.config.Configpublic java.util.List<java.lang.Long> getMillisecondsList(java.lang.String path)
getMillisecondsList in interface com.typesafe.config.Configpublic java.util.List<java.lang.Long> getNanosecondsList(java.lang.String path)
getNanosecondsList in interface com.typesafe.config.Configpublic CachingConfig withOnlyPath(java.lang.String path)
withOnlyPath in interface com.typesafe.config.Configpublic CachingConfig withoutPath(java.lang.String path)
withoutPath in interface com.typesafe.config.Configpublic CachingConfig atPath(java.lang.String path)
atPath in interface com.typesafe.config.Configpublic CachingConfig atKey(java.lang.String key)
atKey in interface com.typesafe.config.Configpublic CachingConfig withValue(java.lang.String path, com.typesafe.config.ConfigValue value)
withValue in interface com.typesafe.config.Configpublic long getDuration(java.lang.String path,
java.util.concurrent.TimeUnit unit)
getDuration in interface com.typesafe.config.Configpublic java.util.List<java.lang.Long> getDurationList(java.lang.String path,
java.util.concurrent.TimeUnit unit)
getDurationList in interface com.typesafe.config.Configpublic boolean isResolved()
isResolved in interface com.typesafe.config.Configpublic com.typesafe.config.Config resolveWith(com.typesafe.config.Config source,
com.typesafe.config.ConfigResolveOptions options)
resolveWith in interface com.typesafe.config.Configpublic com.typesafe.config.Config resolveWith(com.typesafe.config.Config source)
resolveWith in interface com.typesafe.config.Configpublic void checkValid(com.typesafe.config.Config reference,
java.lang.String[] restrictToPaths)
checkValid in interface com.typesafe.config.Config