Same as getOptionalBoolean, but will throw an error if there's no value for the given key.
Same as getOptionalConfig, but will throw an error if there's no value for the given key.
Same as getOptionalConfigArray, but will throw an error if there's no value for the given key.
Same as getOptionalNumber, but will throw an error if there's no value for the given key.
Read out all configuration data for the given key.
Usage of this method should be avoided as the typed alternatives provide much better error reporting. The main use-case of this method is to determine the type of a configuration value in the case where there are multiple possible shapes of the configuration.
Optionalkey: stringReads a configuration value at the given key, expecting it to be a boolean.
Creates a sub-view of the configuration object. The configuration value at the position of the provided key must be an object.
Creates a sub-view of an array of configuration objects. The configuration value at the position of the provided key must be an array of objects.
Reads a configuration value at the given key, expecting it to be a number.
Reads a configuration value at the given key, expecting it to be a string.
Reads a configuration value at the given key, expecting it to be an array of strings.
Same as getOptionalString, but will throw an error if there's no value for the given key.
Same as getOptionalStringArray, but will throw an error if there's no value for the given key.
Checks whether the given key is present.
Lists all available configuration keys.
OptionalsubscribeSubscribes to the configuration object in order to receive a notification whenever any value within the configuration has changed.
This method is optional to implement, and consumers need to check if it is implemented before invoking it.
A config implementation that can be closed.
Remarks
Closing the configuration instance will stop the reading from the underlying source.