Class AbstractWatcher

    • Method Detail

      • modified

        public void modified()
        Description copied from interface: Watcher
        Called when the configuration has been modified.
        Specified by:
        modified in interface Watcher
      • getLastModified

        public abstract long getLastModified()
        Description copied from interface: Watcher
        Returns the time the source was last modified or 0 if it is not available.
        Specified by:
        getLastModified in interface Watcher
        Returns:
        the time the source was last modified.
      • isModified

        public abstract boolean isModified()
        Description copied from interface: Watcher
        Periodically called to determine if the configuration has been modified.
        Specified by:
        isModified in interface Watcher
        Returns:
        true if the configuration was modified, false otherwise.
      • watching

        public void watching​(Source source)
        Description copied from interface: Watcher
        Called when the Watcher is registered.
        Specified by:
        watching in interface Watcher
        Parameters:
        source - the Source that is being watched.
      • getSource

        public Source getSource()
        Description copied from interface: Watcher
        Returns the Source being monitored.
        Specified by:
        getSource in interface Watcher
        Returns:
        the Source.