public abstract class WatchEvent<T>
extends java.lang.Object
poll()
or
take()
methods).Modifier and Type | Class and Description |
---|---|
static interface |
WatchEvent.Kind<T>
Instances of this class act as tags to identify different kinds of
events (like file creation or deletion)
|
static interface |
WatchEvent.Modifier<T>
A modifier can be specified to
register to
change the way changes to a watchable are reported. |
Modifier | Constructor and Description |
---|---|
protected |
WatchEvent() |
public abstract T context()
Path
to the file that this event
refers to, relative to the watched Path
public abstract int count()
public abstract WatchEvent.Kind<T> kind()