public interface ConfigSourceRuntime
The runtime of a config source. For a single 
Config, there is one source runtime for each configured
 config source.- 
Method SummaryModifier and TypeMethodDescriptionDescription of the underlying config source.booleanisLazy()If a config source is lazy, itsload()method always returns empty and you must usenode(String)methods to retrieve its values.load()Load the config source if it is eager (such asParsableSourceorNodeConfigSource.Get a single config node based on the key.voidonChange(BiConsumer<String, ConfigNode> change) Change support for a runtime.
- 
Method Details- 
onChangeChange support for a runtime.- Parameters:
- change- change listener
 
- 
loadOptional<ConfigNode.ObjectNode> load()Load the config source if it is eager (such asParsableSourceorNodeConfigSource.For LazyConfigSource, this method may return an empty optional (if no key was yet requested), or a node with currently known keys and values.- Returns:
- loaded data
 
- 
nodeGet a single config node based on the key. Use this method if you are interested in a specific key, as it works both for eager and lazy config sources.- Parameters:
- key- key of the node to retrieve
- Returns:
- value on the key, or empty if not present
 
- 
descriptionString description()Description of the underlying config source.- Returns:
- description of the source
 
- 
isLazyboolean isLazy()If a config source is lazy, itsload()method always returns empty and you must usenode(String)methods to retrieve its values.- Returns:
- trueif the underlying config source cannot load whole configuration tree
 
 
-