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() |
| Modifier and Type | Method and Description |
|---|---|
abstract T |
context() |
abstract int |
count()
The number of times this event occurred, if it is cumulative.
|
abstract WatchEvent.Kind<T> |
kind() |
public abstract T context()
Path to the file that this event
refers to, relative to the watched Pathpublic abstract int count()
public abstract WatchEvent.Kind<T> kind()