watch Url
Returns a child config containing values from specified url, and reloads values periodically.
Format of the url is auto-detected from the url extension. Supported url formats and the corresponding extensions:
HOCON: conf
JSON: json
Properties: properties
TOML: toml
XML: xml
YAML: yml, yaml
Throws UnsupportedExtensionException if the url extension is unsupported.
Return
a child config containing values from specified url
Parameters
specified url
reload period. The default value is 5.
time unit of delay. The default value is TimeUnit.SECONDS.
context of the coroutine. The default value is Dispatchers.Default.
whether the source is optional
function invoked after the updated URL is loaded
Throws
Returns a child config containing values from specified url string, and reloads values periodically.
Format of the url is auto-detected from the url extension. Supported url formats and the corresponding extensions:
HOCON: conf
JSON: json
Properties: properties
TOML: toml
XML: xml
YAML: yml, yaml
Throws UnsupportedExtensionException if the url extension is unsupported.
Return
a child config containing values from specified url string
Parameters
specified url string
reload period. The default value is 5.
time unit of delay. The default value is TimeUnit.SECONDS.
context of the coroutine. The default value is Dispatchers.Default.
whether the source is optional
function invoked after the updated URL is loaded