Interface MacOSXListeningWatchService.Config

  • Enclosing class:
    MacOSXListeningWatchService

    public static interface MacOSXListeningWatchService.Config
    Configuration for the watch service.
    • Method Detail

      • latency

        default double latency()
        The maximum number of seconds to wait after hearing about an event
      • queueSize

        default int queueSize()
        The size of the queue used for each WatchKey
      • fileLevelEvents

        default boolean fileLevelEvents()
        Request file-level notifications from the watcher. This can be expensive so use with care.

        NOTE: this feature will automatically be enabled when the file hasher is null, since the hasher is needed to determine which files in a directory were actually created or modified.

      • fileHasher

        default FileHasher fileHasher()
        The file hasher to use to check whether files have changed. If null, this will disable file hashing and automatically turn on file-level events. See `fileLevelEvents` config for more information.
      • fileTreeVisitor

        default FileTreeVisitor fileTreeVisitor()
        The file tree visitor to use in order to find files. If null, the default file visitor will be used