Class WatchServiceConfiguration


  • public abstract class WatchServiceConfiguration
    extends java.lang.Object
    Configuration for the WatchService implementation used by a file system.
    Since:
    1.1
    Author:
    Colin Decker
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static WatchServiceConfiguration polling​(long interval, java.util.concurrent.TimeUnit timeUnit)
      Returns a configuration for a WatchService that polls watched directories for changes every interval of the given timeUnit (e.g.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • polling

        public static WatchServiceConfiguration polling​(long interval,
                                                        java.util.concurrent.TimeUnit timeUnit)
        Returns a configuration for a WatchService that polls watched directories for changes every interval of the given timeUnit (e.g. every 5 seconds).