A service that will monitor the file system for file creation, deletion and modification.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class WatchServiceAdapter
Members list
Value members
Abstract methods
Closes this WatchService
.
Closes this WatchService
.
Attributes
Initializes the watchservice.
Initializes the watchservice.
Attributes
Retrieves the next WatchKey
that has a WatchEvent
waiting. Waits until the timeout
is expired is no such key exists.
Retrieves the next WatchKey
that has a WatchEvent
waiting. Waits until the timeout
is expired is no such key exists.
Value parameters
- timeout
-
Maximum time to wait
Attributes
- Returns
-
The next
WatchKey
that received an event, or null if no such key exists.
Retrieves all the events and groups them by watch key. Does not wait if no event is available.
Retrieves all the events and groups them by watch key. Does not wait if no event is available.
Attributes
- Returns
-
The pending events.
Registers a path to be monitored.
Registers a path to be monitored.
Value parameters
- events
-
The events that should be registered.
- path
-
The path to monitor.
Attributes
- Returns
-
A
WatchKey
, that represents a token of registration.