T- The type of the context object associated with the event
public interface WatchEvent<T>
An event is classified by its
kind and has a
count to indicate the number of times that the event has been
observed. This allows for efficient representation of repeated events. The
context method returns any context associated with
the event. In the case of a repeated event then the context is the same for
Watch events are immutable and safe for use by multiple concurrent threads.
|Modifier and Type||Interface and Description|
An event kind, for the purposes of identification.
1then this is a repeated event.
In the case of
ENTRY_MODIFY events the context is
Path that is the
relative path between
the directory registered with the watch service, and the entry that is
created, deleted, or modified.
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2020, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.