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 a DynamicConfig instance.

    A dynamic configuration source allows the client to listen for updates in the underlying configuration source.

    Author:
    Elias Lindholm (elilin)
    • Method Detail

      • get

        String get​(String propertyName,
                   DynamicPropertyListener<String> propertyChangeListener)
        Returns a configuration property from this configuration source. The DynamicPropertyListener will 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