Class ConfigReloadStrategy

    • Field Detail

      • listeners

        protected final java.util.List<ConfigReloadListener> listeners
        The listeners for the Config Reload.
      • source

        protected ConfigSource source
        The source we are listening for a reload.
    • Constructor Detail

      • ConfigReloadStrategy

        protected ConfigReloadStrategy()
        Protected constructor for the ConfigReloadStrategy. So end users cant create this class, only inherit it.
      • ConfigReloadStrategy

        protected ConfigReloadStrategy​(ConfigSource source)
        Protected constructor for the ConfigReloadStrategy. So end users cant create this class, only inherit it.
        Parameters:
        source - source we are listening for a reload
    • Method Detail

      • getSource

        public ConfigSource getSource()
        Get the source this reload strategy should apply to.
        Returns:
        the source this reload strategy should apply to.
      • registerListener

        public void registerListener​(ConfigReloadListener listener)
        Add a config reload listener.
        Parameters:
        listener - a config reload listener.
      • removeListener

        public void removeListener​(ConfigReloadListener listener)
        Remove a config reload listener.
        Parameters:
        listener - a config reload listener.