StandardWatchEventKinds (Java SE 9 & JDK 9 ) (original) (raw)
- java.nio.file.StandardWatchEventKinds
public final class StandardWatchEventKinds
extends Object
Defines the standard event kinds.
Since:
1.7
Field Summary
Fields
Modifier and Type Field Description static WatchEvent.Kind<Path> ENTRY_CREATE Directory entry created. static WatchEvent.Kind<Path> ENTRY_DELETE Directory entry deleted. static WatchEvent.Kind<Path> ENTRY_MODIFY Directory entry modified. static WatchEvent.Kind<Object> OVERFLOW A special event to indicate that events may have been lost or discarded. Method Summary
* ### Methods inherited from class java.lang.[Object](../../../java/lang/Object.html "class in java.lang") `[clone](../../../java/lang/Object.html#clone--), [equals](../../../java/lang/Object.html#equals-java.lang.Object-), [finalize](../../../java/lang/Object.html#finalize--), [getClass](../../../java/lang/Object.html#getClass--), [hashCode](../../../java/lang/Object.html#hashCode--), [notify](../../../java/lang/Object.html#notify--), [notifyAll](../../../java/lang/Object.html#notifyAll--), [toString](../../../java/lang/Object.html#toString--), [wait](../../../java/lang/Object.html#wait--), [wait](../../../java/lang/Object.html#wait-long-), [wait](../../../java/lang/Object.html#wait-long-int-)`
Field Detail
* #### OVERFLOW public static final [WatchEvent.Kind](../../../java/nio/file/WatchEvent.Kind.html "interface in java.nio.file")<[Object](../../../java/lang/Object.html "class in java.lang")> OVERFLOW A special event to indicate that events may have been lost or discarded. The [context](../../../java/nio/file/WatchEvent.html#context--) for this event is implementation specific and may be `null`. The event [count](../../../java/nio/file/WatchEvent.html#count--) may be greater than `1`. See Also: [WatchService](../../../java/nio/file/WatchService.html "interface in java.nio.file") * #### ENTRY\_CREATE public static final [WatchEvent.Kind](../../../java/nio/file/WatchEvent.Kind.html "interface in java.nio.file")<[Path](../../../java/nio/file/Path.html "interface in java.nio.file")> ENTRY_CREATE Directory entry created. When a directory is registered for this event then the [WatchKey](../../../java/nio/file/WatchKey.html "interface in java.nio.file") is queued when it is observed that an entry is created in the directory or renamed into the directory. The event [count](../../../java/nio/file/WatchEvent.html#count--) for this event is always `1`. * #### ENTRY\_DELETE public static final [WatchEvent.Kind](../../../java/nio/file/WatchEvent.Kind.html "interface in java.nio.file")<[Path](../../../java/nio/file/Path.html "interface in java.nio.file")> ENTRY_DELETE Directory entry deleted. When a directory is registered for this event then the [WatchKey](../../../java/nio/file/WatchKey.html "interface in java.nio.file") is queued when it is observed that an entry is deleted or renamed out of the directory. The event [count](../../../java/nio/file/WatchEvent.html#count--) for this event is always `1`. * #### ENTRY\_MODIFY public static final [WatchEvent.Kind](../../../java/nio/file/WatchEvent.Kind.html "interface in java.nio.file")<[Path](../../../java/nio/file/Path.html "interface in java.nio.file")> ENTRY_MODIFY Directory entry modified. When a directory is registered for this event then the [WatchKey](../../../java/nio/file/WatchKey.html "interface in java.nio.file") is queued when it is observed that an entry in the directory has been modified. The event [count](../../../java/nio/file/WatchEvent.html#count--) for this event is`1` or greater.
Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2017, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.