Lines Matching refs:selector
149 * problem). If possible, it will attempt to use the selector returned
216 Selector selector = getWriteSelector();
217 if (selector == null)
219 // The client connection does not provide a selector, so we'll
221 // selector.
246 // Register with the selector for handling write operations.
247 SelectionKey key = clientChannel.register(selector,
251 selector.select(waitTime);
265 Iterator<SelectionKey> iterator = selector.selectedKeys()
289 selector.select(waitTime);
300 selector.selectNow();
366 /** The selector that may be used for write operations. */
1089 // If there is a write selector for this connection, then close it.
1090 Selector selector = writeSelector.get();
1091 close(selector);
1525 Selector selector = writeSelector.get();
1526 if (selector == null)
1530 selector = Selector.open();
1531 if (!writeSelector.compareAndSet(null, selector))
1533 selector.close();
1534 selector = writeSelector.get();
1546 return selector;