Package io.methvin.watchservice
Interface MacOSXListeningWatchService.Config
-
- Enclosing class:
- MacOSXListeningWatchService
public static interface MacOSXListeningWatchService.Config
Configuration for the watch service.
-
-
Field Summary
Fields Modifier and Type Field Description static double
DEFAULT_LATENCY
static int
DEFAULT_QUEUE_SIZE
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default FileHasher
fileHasher()
The file hasher to use to check whether files have changed.default boolean
fileLevelEvents()
Request file-level notifications from the watcher.default FileTreeVisitor
fileTreeVisitor()
The file tree visitor to use in order to find files.default double
latency()
The maximum number of seconds to wait after hearing about an eventdefault int
queueSize()
The size of the queue used for each WatchKey
-
-
-
Field Detail
-
DEFAULT_LATENCY
static final double DEFAULT_LATENCY
- See Also:
- Constant Field Values
-
DEFAULT_QUEUE_SIZE
static final int DEFAULT_QUEUE_SIZE
- See Also:
- Constant Field Values
-
-
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
-
-