Class MapConfigSource

    • Method Detail

      • builder

        public static MapConfigSource.Builder builder()
        Create a new fluent API builder.
        Returns:
        a new builder instance
      • create

        public static MapConfigSource create​(Map<String,​String> map)
        Create a new config source from the provided map.
        Parameters:
        map - config properties
        Returns:
        a new map config source
      • create

        public static MapConfigSource create​(Properties properties)
        Create a new config source from the provided properties.
        Parameters:
        properties - properties to serve as source of data
        Returns:
        a new map config source
      • isModified

        public boolean isModified​(Map<?,​?> stamp)
        Description copied from interface: PollableSource
        This method is invoked to check if this source has changed.
        Specified by:
        isModified in interface PollableSource<Map<?,​?>>
        Parameters:
        stamp - the stamp of the last loaded content
        Returns:
        true if the current data of this config source differ from the loaded data, including cases when the source has disappeared