public class MultipleLevelConfigurationRepository<T extends Configuration,Loader extends ConfigurationLoader<T>,Writer extends ConfigurationWriter<T>> extends AbstractConfigurationRepository<T,Loader,Writer>
cache, reloadIntervalInSecondscomparator, eventFactory, eventPublisher, loader, writerinited| 构造器和说明 |
|---|
MultipleLevelConfigurationRepository() |
| 限定符和类型 | 方法和说明 |
|---|---|
T |
add(T configuration,
boolean sync) |
void |
addRepository(ConfigurationRepository repository) |
void |
addRepository(ConfigurationRepository repository,
int order) |
void |
doStart()
Subclasses must implement this method with the start behavior.
|
void |
doStop()
Subclasses must implement this method with the stop behavior.
|
Map<String,T> |
getAll() |
T |
getById(String id)
Get a configuration bean by a specified id
|
T |
getById(String id,
Function<List<T>,T> mapper) |
T |
getById(String repositoryName,
String id) |
void |
removeById(String id,
boolean sync)
Remove a configuration by id
|
void |
removeRepository(String repositoryName) |
void |
update(T configuration,
boolean sync)
update the configuration to storage
|
doInit, getTimer, setCache, setReloadIntervalInSeconds, setTimeradd, getComparator, getConfigurationLoader, getConfigurationWriter, getEventPublisher, logMutation, reload, removeById, setComparator, setConfigurationLoader, setConfigurationWriter, setEventFactory, setEventPublisher, updategetName, isRunning, setName, shutdown, startup, stopAndExecute, toStringinitclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetName, setNameinitpublic void addRepository(ConfigurationRepository repository)
public void addRepository(ConfigurationRepository repository, int order)
public void removeRepository(String repositoryName)
public void doStart()
AbstractLifecycleAbstractLifecycle.lifecycleLock.doStart 在类中 AbstractConfigurationRepository<T extends Configuration,Loader extends ConfigurationLoader<T>,Writer extends ConfigurationWriter<T>>public void doStop()
AbstractLifecycleAbstractLifecycle.lifecycleLock.doStop 在类中 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 © 2022. All rights reserved.