Package name.pachler.nio.file
Class StandardWatchEventKind
java.lang.Object
name.pachler.nio.file.StandardWatchEventKind
This class contains the standard watch event kinds, which are basically
flags that indicate which events a WatchService should report when a
Watchable is registered with a WatchService.
The kinds are also used to indicate the kind of event on events that
are reported back.
Note that the event kinds defined in this class are supported on all platforms
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final WatchEvent.Kind
<Path> Indicates that a file has been created under the watched path.static final WatchEvent.Kind
<Path> Indicates that a file has been deleted under the watched path.static final WatchEvent.Kind
<Path> Indicates that a file under the watched path has been modified.static final WatchEvent.Kind
<Void> Indicates queue overflow in the WatchService. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ENTRY_CREATE
Indicates that a file has been created under the watched path. -
ENTRY_DELETE
Indicates that a file has been deleted under the watched path. Note that on file rename the old file name will be reported as deleted if no other (extended) watch event kinds are specified.- See Also:
-
ENTRY_MODIFY
Indicates that a file under the watched path has been modified. Note that modification can never be byte-accurate, which means that you won't receive a modification event for each byte written to a file. It is higly implementation dependent how many modification events are produced. -
OVERFLOW
Indicates queue overflow in the WatchService. If the event queue overflows (because, for example,the WatchService runs out of space to store events because they occur faster than the client code can retreives them from the designated watch keys), additional events are dropped, and this event is reported. Note that WatchKeys are always subscribed to this event, regardless of whether it is specified toregister()
or not.- See Also:
-
-
Constructor Details
-
StandardWatchEventKind
public StandardWatchEventKind()
-