Searched refs:WatchKey (Results 1 - 22 of 22) sorted by relevance

/openjdk7/jdk/src/share/classes/java/nio/file/
H A DWatchService.java39 * its {@link Watchable#register register} method, returning a {@link WatchKey}
45 * invokes the key's {@link WatchKey#reset reset} method to reset the key which
49 * {@link WatchKey#cancel cancel} method. A key that is queued at the time that
69 * discards events then it arranges for the key's {@link WatchKey#pollEvents
116 * valid keys associated with this watch service are {@link WatchKey#isValid
139 WatchKey poll();
159 WatchKey poll(long timeout, TimeUnit unit)
173 WatchKey take() throws InterruptedException;
H A DWatchable.java35 * the object with a {@link WatchService} returning a {@link WatchKey} to
38 * key's {@link WatchKey#cancel cancel} method.
89 WatchKey register(WatchService watcher,
125 WatchKey register(WatchService watcher, WatchEvent.Kind<?>... events)
H A DWatchKey.java60 * WatchKey key = watcher.take();
84 public interface WatchKey { interface
H A DPath.java661 WatchKey register(WatchService watcher,
682 * WatchKey key = dir.register(watcher, ENTRY_CREATE, ENTRY_DELETE, ENTRY_MODIFY);
709 WatchKey register(WatchService watcher,
/openjdk7/jdk/src/share/classes/sun/nio/fs/
H A DAbstractWatchService.java39 private final LinkedBlockingDeque<WatchKey> pendingKeys =
40 new LinkedBlockingDeque<WatchKey>();
43 private final WatchKey CLOSE_KEY =
65 abstract WatchKey register(Path path,
71 final void enqueueKey(WatchKey key) {
87 private void checkKey(WatchKey key) {
96 public final WatchKey poll() {
98 WatchKey key = pendingKeys.poll();
104 public final WatchKey poll(long timeout, TimeUnit unit)
108 WatchKey ke
[all...]
H A DAbstractPoller.java85 abstract void implCancelKey(WatchKey key);
95 final WatchKey register(Path dir,
128 return (WatchKey)invoke(RequestType.REGISTER, dir, eventSet, modifiers);
134 final void cancel(WatchKey key) {
268 WatchKey key = (WatchKey)params[0];
H A DAbstractPath.java100 public final WatchKey register(WatchService watcher,
H A DAbstractWatchKey.java35 abstract class AbstractWatchKey implements WatchKey {
H A DPollingWatchService.java71 WatchKey register(final Path path,
226 * WatchKey implementation that encapsulates a map of the entries of the
/openjdk7/jdk/test/java/nio/file/WatchService/
H A DFileTreeModifier.java44 WatchKey key;
69 WatchKey key = top.register(watcher,
79 WatchKey k = top.register(watcher,
99 WatchKey nextKey;
106 throw new RuntimeException("WatchKey not expected to be polled");
H A DBasic.java44 static void checkKey(WatchKey key, Path dir) {
51 static void takeExpectedKey(WatchService watcher, WatchKey expected) {
53 WatchKey key;
91 WatchKey myKey = dir.register(watcher,
114 WatchKey deleteKey = dir.register(watcher,
138 WatchKey newKey = dir.register(watcher,
169 WatchKey myKey = dir.register(watcher,
184 WatchKey key = watcher.poll(3000, TimeUnit.MILLISECONDS);
210 WatchKey myKey = subdir.register(watcher,
276 WatchKey ke
[all...]
H A DLotsOfEvents.java94 WatchKey key = watcher.poll(15, TimeUnit.SECONDS);
166 WatchKey key = watcher.poll(15, TimeUnit.SECONDS);
H A DSensitivityModifier.java88 WatchKey key = watcher.take();
/openjdk7/jdk/src/share/sample/nio/file/
H A DWatchDir.java67 WatchKey key = dir.register(watcher, ENTRY_CREATE, ENTRY_DELETE, ENTRY_MODIFY);
116 WatchKey key;
/openjdk7/jdk/src/windows/classes/sun/nio/fs/
H A DWindowsWatchService.java66 WatchKey register(Path path,
82 * Windows implementation of WatchKey.
106 // completion key (used to map I/O completion to WatchKey)
277 // maps completion key to WatchKey
280 // maps file key to WatchKey
439 void implCancelKey(WatchKey obj) {
538 // map completionKey to get WatchKey
H A DWindowsPath.java841 public WatchKey register(WatchService watcher,
/openjdk7/jdk/src/solaris/classes/sun/nio/fs/
H A DLinuxWatchService.java81 WatchKey register(Path dir,
97 * WatchKey implementation
277 void implCancelKey(WatchKey obj) {
H A DSolarisWatchService.java110 WatchKey register(Path dir,
126 * WatchKey implementation
237 // maps file key (dev/inode) to WatchKey
324 void implCancelKey(WatchKey obj) {
H A DUnixPath.java887 public WatchKey register(WatchService watcher,
/openjdk7/jdk/test/java/nio/file/Files/
H A DPassThroughFileSystem.java523 public WatchKey register(WatchService watcher,
531 public WatchKey register(WatchService watcher,
/openjdk7/jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/
H A DZipPath.java580 public WatchKey register(
591 public WatchKey register(WatchService watcher, WatchEvent.Kind<?>... events) {
/openjdk7/jdk/make/java/nio/
H A DFILES_java.gmk122 java/nio/file/WatchKey.java \

Completed in 103 milliseconds