public class EtcdDataSource<T> extends AbstractDataSource<String,T>
DataSource with Etcd backend. When the data in Etcd backend has been modified,
Etcd will automatically push the new value so that the dynamic configuration can be real-time.parser, property| Constructor and Description |
|---|
EtcdDataSource(String key,
Converter<String,T> parser)
Create an etcd data-source.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
readSource() |
getProperty, loadConfig, loadConfigpublic EtcdDataSource(String key, Converter<String,T> parser)
EtcdConfig.key - config keyparser - data parserCopyright © 2023 Alibaba Group. All rights reserved.