Closes this WatchService.
Closes this WatchService.
Initializes the watchservice.
Initializes the watchservice.
Retrieves the next WatchKey that has a WatchEvent waiting.
Retrieves the next WatchKey that has a WatchEvent waiting. Waits
until the timeout is expired is no such key exists.
Maximum time to wait
The next WatchKey that received an event, or null if no such
key exists.
Retrieves all the events and groups them by watch key.
Retrieves all the events and groups them by watch key. Does not wait if no event is available.
The pending events.
Registers a path to be monitored.
Registers a path to be monitored.
The path to monitor.
The events that should be registered.
A WatchKey, that represents a token of registration.
Unregisters a monitored path.
Unregisters a monitored path.
The monitored path.
A
WatchServicethat polls the filesystem everydelay.