Lines Matching refs:selector
83 // need to be registered with the selector.
95 // The selector that will be used to monitor the client connections.
96 private final Selector selector;
128 selector = Selector.open();
147 selector.selectNow();
248 // registered with the selector.
267 socketChannel.register(selector, SelectionKey.OP_READ, c);
287 keys = selector.keys().toArray(new SelectionKey[0]);
293 selectedKeys = selector.select(1000);
313 Iterator<SelectionKey> iterator = selector.selectedKeys().iterator();
418 SelectionKey[] keyArray = selector.keys().toArray(new SelectionKey[0]);
511 // up the selector so it will be picked up right away. Otherwise,
518 selector.wakeup();
586 selector.wakeup();