public class ConfigManager extends Object
Constructor and Description |
---|
ConfigManager(MetadataStorageConnector dbConnector,
com.google.common.base.Supplier<MetadataStorageTablesConfig> dbTables,
com.google.common.base.Supplier<ConfigManagerConfig> config) |
Modifier and Type | Method and Description |
---|---|
<T> boolean |
set(String key,
ConfigSerde<T> serde,
T obj) |
void |
start() |
void |
stop() |
<T> AtomicReference<T> |
watchConfig(String key,
ConfigSerde<T> serde) |
@Inject public ConfigManager(MetadataStorageConnector dbConnector, com.google.common.base.Supplier<MetadataStorageTablesConfig> dbTables, com.google.common.base.Supplier<ConfigManagerConfig> config)
public void start()
public void stop()
public <T> AtomicReference<T> watchConfig(String key, ConfigSerde<T> serde)
public <T> boolean set(String key, ConfigSerde<T> serde, T obj)
Copyright © 2011–2015. All rights reserved.