public class ConfigItemManagerImpl extends Object implements ConfigItemManager, RemoteConfigManageClient
Constructor and Description |
---|
ConfigItemManagerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
delete(String key,
ConfigPath configPath)
删除配置项
|
boolean |
exists(String key,
ConfigPath configPath)
验证配置项是否存在
|
ConfigValue |
get(String key,
ConfigPath configPath)
获取配置项
|
Map<String,ConfigValue> |
getAll(ConfigPath configPath)
获取指定环境配置项合集
|
void |
set(String key,
ConfigValue value,
ConfigPath configPath)
写入配置项
该接口,包含写入和修改操作
|
void |
start()
客户端初始化
|
void |
stop()
客户端停止
|
public boolean exists(String key, ConfigPath configPath)
ConfigItemManager
exists
in interface ConfigItemManager
key
- 变量名configPath
- 配置项位置public ConfigValue get(String key, ConfigPath configPath)
ConfigItemManager
get
in interface ConfigItemManager
key
- 变量名configPath
- 配置项位置public Map<String,ConfigValue> getAll(ConfigPath configPath)
ConfigItemManager
getAll
in interface ConfigItemManager
public void start()
RemoteConfigManageClient
start
in interface RemoteConfigManageClient
public void stop()
RemoteConfigManageClient
stop
in interface RemoteConfigManageClient
public void delete(String key, ConfigPath configPath)
ConfigItemManager
delete
in interface ConfigItemManager
key
- 变量名configPath
- 配置项位置public void set(String key, ConfigValue value, ConfigPath configPath)
ConfigItemManager
set
in interface ConfigItemManager
key
- 变量名value
- 变量值configPath
- 配置项写入位置,此参数根据自身属性,指向唯一一份远程配置Copyright © 2006–2018 TinyGroup. All rights reserved.