Class ExtendedWatchEventKind

    • Field Detail

      • KEY_INVALID

        public static WatchEvent.Kind<java.lang.Void> KEY_INVALID
        Indicates that the given WatchKey has become invalid. This can happen for a number of reasons:
        • The key has been invalidated programmatically by calling WatchKey.cancel().
        • The WatchService has been closed.
        • The path that the key has been registered with has become unavailable, e.g because it was deleted or the file system on which it resides has been unmounted.
        Note that not all operating systems will invalidate the WatchKey (and report KEY_INVALID) under the same circumstances. On most platforms, moving or renaming the directory that the key was registered with will invalidate it, however, on Windows it will not (only when it is deleted or unmounted).
    • Constructor Detail

      • ExtendedWatchEventKind

        public ExtendedWatchEventKind()