public class PathWatchKey extends WatchKey
Modifier and Type | Method and Description |
---|---|
void |
cancel()
This cancels the registration with the WatchService that this WatchKey
was registered with.
|
protected void |
finalize() |
protected int |
getNumQueuedEvents() |
boolean |
isValid() |
java.util.List<WatchEvent<?>> |
pollEvents()
Returns the events that have occurred for this WatchKey.
|
boolean |
reset()
Resets this
WatchKey (marks it as non-signalled) so that it's
corresponding WatchService can report it again via it's
WatchService.poll() and WatchService.take() methods. |
protected void finalize()
finalize
in class java.lang.Object
public void cancel()
WatchKey
public final boolean isValid()
public java.util.List<WatchEvent<?>> pollEvents()
WatchKey
pollEvents
in class WatchKey
public boolean reset()
WatchKey
WatchKey
(marks it as non-signalled) so that it's
corresponding WatchService
can report it again via it's
WatchService.poll()
and WatchService.take()
methods.reset
in class WatchKey
true
if the key could be reset, false
otherwise (typically if the corresponding WatchService
has been closed
or if the the key was not signalled).protected int getNumQueuedEvents()