Lines Matching refs:key
42 // special key to indicate that watch service is closed
70 // used by AbstractWatchKey to enqueue key
71 final void enqueueKey(WatchKey key) {
72 pendingKeys.offer(key);
84 * Checks the key isn't the special CLOSE_KEY used to unblock threads when
87 private void checkKey(WatchKey key) {
88 if (key == CLOSE_KEY) {
90 enqueueKey(key);
98 WatchKey key = pendingKeys.poll();
99 checkKey(key);
100 return key;
108 WatchKey key = pendingKeys.poll(timeout, unit);
109 checkKey(key);
110 return key;
118 WatchKey key = pendingKeys.take();
119 checkKey(key);
120 return key;
155 // clear pending keys and queue special key to ensure that any