Interface ReloadableConfigContainer<T>
-
- Type Parameters:
T
- the configuration entity being provided
- All Known Subinterfaces:
SaveableConfigContainer<T>
- All Known Implementing Classes:
FileSystemSaveableConfigContainer
,PollingJsonStoreReloadableConfigContainer
public interface ReloadableConfigContainer<T>
A container that provides access to configuration that is backed by some persistent source.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
getConfig()
void
reload()
Instruct the container to reload the in-memory configuration from the backing configuration.
-
-
-
Method Detail
-
reload
void reload()
Instruct the container to reload the in-memory configuration from the backing configuration. This may block if the backing configuration is not immediately available.
-
getConfig
T getConfig()
- Returns:
- the in-memory copy of the configuration which may be reloaded as part of this request depending on the implementation
-
-