Class WatchManager

    • Method Detail

      • setIntervalSeconds

        public void setIntervalSeconds​(int intervalSeconds)
      • getIntervalSeconds

        public int getIntervalSeconds()
      • stop

        public boolean stop​(long timeout,
                            java.util.concurrent.TimeUnit timeUnit)
        Description copied from interface: LifeCycle2
        Blocks until all tasks have completed execution after a shutdown request, or the timeout occurs, or the current thread is interrupted, whichever happens first.
        Specified by:
        stop in interface LifeCycle2
        Overrides:
        stop in class AbstractLifeCycle
        Parameters:
        timeout - the maximum time to wait
        timeUnit - the time unit of the timeout argument
        Returns:
        true if the receiver was stopped cleanly and normally, false otherwise.
      • watchFile

        public void watchFile​(java.io.File file,
                              FileWatcher watcher)
      • getWatchers

        public java.util.Map<java.io.File,​FileWatcher> getWatchers()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object