- Type Parameters:
T- The type of the context object associated with the event
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.
Nested Class Summary
kindReturns the event kind.
- the event kind
countint count()Returns the event count. If the event count is greater than
1then this is a repeated event.
- the event count
contextT context()Returns the context for the event.
In the case of
ENTRY_MODIFYevents the context is a
Paththat is the
relativepath between the directory registered with the watch service, and the entry that is created, deleted, or modified.
- the event context; may be