Lines Matching refs:selector
138 * problem). If possible, it will attempt to use the selector returned
205 Selector selector = getWriteSelector();
206 if (selector == null)
208 // The client connection does not provide a selector, so we'll
210 // selector.
235 // Register with the selector for handling write operations.
236 SelectionKey key = clientChannel.register(selector,
240 selector.select(waitTime);
254 Iterator<SelectionKey> iterator = selector.selectedKeys()
278 selector.select(waitTime);
289 selector.selectNow();
361 /** The selector that may be used for write operations. */
1078 // If there is a write selector for this connection, then close it.
1079 Selector selector = writeSelector.get();
1080 close(selector);
1480 Selector selector = writeSelector.get();
1481 if (selector == null)
1485 selector = Selector.open();
1486 if (!writeSelector.compareAndSet(null, selector))
1488 selector.close();
1489 selector = writeSelector.get();
1498 return selector;