Class MapConfigSource.MapBuilder<T extends MapConfigSource.MapBuilder<T>>

    • Constructor Detail

      • MapBuilder

        protected MapBuilder()
        Creat a new builder instance.
    • Method Detail

      • map

        public T map​(Map<String,​String> map)
        Map to be used as config source underlying data. The same instance is kept by the config source, to support polling.
        Parameters:
        map - map to use
        Returns:
        updated builder instance
      • properties

        public T properties​(Properties properties)
        Properties to be used as config source underlying data. The same instance is kept by the config source, to support polling.
        Parameters:
        properties - properties to use
        Returns:
        updated builder instance
      • name

        public T name​(String sourceName)
        Name of this source.
        Parameters:
        sourceName - name of this source
        Returns:
        updated builder instance
      • map

        protected Map<?,​?> map()
        Map used as data of this config source.
        Returns:
        map with the data
      • sourceName

        protected String sourceName()
        Name of the source.
        Returns:
        name