Package com.avanza.astrix.config
Interface DynamicConfigSource
-
- All Superinterfaces:
ConfigSource
- All Known Implementing Classes:
AbstractDynamicConfigSource,MapConfigSource
public interface DynamicConfigSource extends ConfigSource
The SPI used to plug in a dynamic configuration source into aDynamicConfiginstance.A dynamic configuration source allows the client to listen for updates in the underlying configuration source.
- Author:
- Elias Lindholm (elilin)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stringget(String propertyName, DynamicPropertyListener<String> propertyChangeListener)Returns a configuration property from this configuration source.-
Methods inherited from interface com.avanza.astrix.config.ConfigSource
get
-
-
-
-
Method Detail
-
get
String get(String propertyName, DynamicPropertyListener<String> propertyChangeListener)
Returns a configuration property from this configuration source. TheDynamicPropertyListenerwill be updated about all changes to the underlying property.- Parameters:
propertyChangeListener- - A listener that receives callback for each change in the underlying property value.- Returns:
- The current value of the given property, or null if no value exists right now
-
-