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.Objectpublic void cancel()
WatchKeypublic final boolean isValid()
public java.util.List<WatchEvent<?>> pollEvents()
WatchKeypollEvents in class WatchKeypublic boolean reset()
WatchKeyWatchKey (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 WatchKeytrue 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()