Lines Matching refs:selector
76 * need to be registered with the selector.
87 /** The selector that will be used to monitor the client connections. */
88 private final Selector selector;
119 selector = Selector.open();
134 selector.selectNow();
219 // registered with the selector.
238 socketChannel.register(selector, SelectionKey.OP_READ, c);
254 keys = selector.keys().toArray(new SelectionKey[0]);
260 selectedKeys = selector.select(1000);
277 Iterator<SelectionKey> iterator = selector.selectedKeys().iterator();
354 SelectionKey[] keyArray = selector.keys().toArray(new SelectionKey[0]);
435 // up the selector so it will be picked up right away. Otherwise,
442 selector.wakeup();
509 selector.wakeup();