public class MultipleLevelConfigurationRepository<T extends Configuration,Loader extends ConfigurationLoader<T>,Writer extends ConfigurationWriter<T>> extends AbstractConfigurationRepository<T,Loader,Writer>
inited, loader, name, reloadIntervalInSeconds, running, writer| 构造器和说明 |
|---|
MultipleLevelConfigurationRepository() |
| 限定符和类型 | 方法和说明 |
|---|---|
T |
add(T configuration,
boolean sync) |
void |
addRepository(ConfigurationRepository repository) |
void |
addRepository(ConfigurationRepository repository,
int order) |
Map<String,T> |
getAll() |
T |
getById(String id)
Get a configuration bean by a specified id
|
T |
getById(String repositoryName,
String id) |
void |
removeById(String id,
boolean sync)
Remove a configuration by id
|
void |
removeRepository(String repositoryName) |
void |
shutdown() |
void |
startup() |
void |
update(T configuration,
boolean sync)
update the configuration to storage
|
add, getComparator, getEventPublisher, getName, getTimer, init, reload, removeById, setCache, setComparator, setConfigurationLoader, setConfigurationWriter, setEventFactory, setEventPublisher, setName, setReloadIntervalInSeconds, setTimer, updatepublic void addRepository(ConfigurationRepository repository)
public void addRepository(ConfigurationRepository repository, int order)
public void removeRepository(String repositoryName)
public void startup()
startup 在接口中 Lifecyclestartup 在类中 AbstractConfigurationRepository<T extends Configuration,Loader extends ConfigurationLoader<T>,Writer extends ConfigurationWriter<T>>public void shutdown()
shutdown 在接口中 Lifecycleshutdown 在类中 AbstractConfigurationRepository<T extends Configuration,Loader extends ConfigurationLoader<T>,Writer extends ConfigurationWriter<T>>public T getById(String id)
ConfigurationRepositorygetById 在接口中 ConfigurationRepository<T extends Configuration,Loader extends ConfigurationLoader<T>,Writer extends ConfigurationWriter<T>>getById 在接口中 Repository<T extends Configuration,String>getById 在类中 AbstractConfigurationRepository<T extends Configuration,Loader extends ConfigurationLoader<T>,Writer extends ConfigurationWriter<T>>id - the idpublic void removeById(String id, boolean sync)
ConfigurationRepositoryremoveById 在接口中 ConfigurationRepository<T extends Configuration,Loader extends ConfigurationLoader<T>,Writer extends ConfigurationWriter<T>>removeById 在类中 AbstractConfigurationRepository<T extends Configuration,Loader extends ConfigurationLoader<T>,Writer extends ConfigurationWriter<T>>id - the configuration idsync - whether sync to the real storage or notpublic T add(T configuration, boolean sync)
add 在接口中 ConfigurationRepository<T extends Configuration,Loader extends ConfigurationLoader<T>,Writer extends ConfigurationWriter<T>>add 在类中 AbstractConfigurationRepository<T extends Configuration,Loader extends ConfigurationLoader<T>,Writer extends ConfigurationWriter<T>>configuration - the configurationsync - whether sync to the real storage or notpublic void update(T configuration, boolean sync)
ConfigurationRepositoryupdate 在接口中 ConfigurationRepository<T extends Configuration,Loader extends ConfigurationLoader<T>,Writer extends ConfigurationWriter<T>>update 在类中 AbstractConfigurationRepository<T extends Configuration,Loader extends ConfigurationLoader<T>,Writer extends ConfigurationWriter<T>>configuration - the configuration beansync - whether sync to the real storage or notpublic Map<String,T> getAll()
getAll 在接口中 ConfigurationRepository<T extends Configuration,Loader extends ConfigurationLoader<T>,Writer extends ConfigurationWriter<T>>getAll 在类中 AbstractConfigurationRepository<T extends Configuration,Loader extends ConfigurationLoader<T>,Writer extends ConfigurationWriter<T>>Copyright © 2020. All rights reserved.