Class ConfigRetrieverOptions


  • public class ConfigRetrieverOptions
    extends Object
    Options to configure the ConfigRetriever.
    Author:
    Clement Escoffier
    • Constructor Detail

      • ConfigRetrieverOptions

        public ConfigRetrieverOptions()
      • ConfigRetrieverOptions

        public ConfigRetrieverOptions​(JsonObject json)
    • Method Detail

      • isIncludeDefaultStores

        public boolean isIncludeDefaultStores()
        Returns:
        whether or not the default stored are included in the configuration.
      • setIncludeDefaultStores

        public ConfigRetrieverOptions setIncludeDefaultStores​(boolean includeDefaultStores)
        Enables or disables the inclusion of the default stored in the configuration.
        Parameters:
        includeDefaultStores - true to include the default stores.
        Returns:
        the current ConfigStoreOptions
      • getScanPeriod

        public long getScanPeriod()
        Returns:
        the scan period in ms.
      • setScanPeriod

        public ConfigRetrieverOptions setScanPeriod​(long scanPeriod)
        Configures the scan period, in ms. This is the time amount between two checks of the configuration updates.
        Parameters:
        scanPeriod - the scan period in ms
        Returns:
        the current ConfigStoreOptions