|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectname.pachler.nio.file.WatchKey
name.pachler.nio.file.impl.PathWatchKey
public class PathWatchKey
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
protected void finalize()
finalize in class java.lang.Objectpublic void cancel()
WatchKey
cancel in class WatchKeypublic final boolean isValid()
isValid in class WatchKeypublic java.util.List<WatchEvent<?>> pollEvents()
WatchKey
pollEvents 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()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||