Searched refs:selectedKeys (Results 1 – 11 of 11) sorted by relevance
158 Set<SelectionKey> selectedKeys = selector.selectedKeys(); in test_selectedKeys() local159 Set<SelectionKey> selectedKeys2 = selector.selectedKeys(); in test_selectedKeys()160 assertSame(selectedKeys, selectedKeys2); in test_selectedKeys()162 assertEquals(1, selectedKeys.size()); in test_selectedKeys()163 assertEquals(ssc.keyFor(selector), selectedKeys.iterator().next()); in test_selectedKeys()166 selectedKeys.add(ssc.keyFor(selector)); in test_selectedKeys()173 selectedKeys.clear(); in test_selectedKeys()175 Set<SelectionKey> selectedKeys3 = selector.selectedKeys(); in test_selectedKeys()176 assertSame(selectedKeys, selectedKeys3); in test_selectedKeys()179 assertEquals(0, selectedKeys.size()); in test_selectedKeys()[all …]
70 assertEquals(true, sel0.selectedKeys().contains(mkey0)); in testSelectorAcceptAndRead()
45 protected Set<SelectionKey> selectedKeys; field in SelectorImpl57 selectedKeys = new HashSet<SelectionKey>(); in SelectorImpl()60 publicSelectedKeys = selectedKeys; in SelectorImpl()63 publicSelectedKeys = Util.ungrowableSet(selectedKeys); in SelectorImpl()73 public Set<SelectionKey> selectedKeys() { in selectedKeys() method in SelectorImpl
103 selectedKeys = null; in implClose()124 if (selectedKeys.contains(sk)) { in updateSelectedKeys()131 selectedKeys.add(sk); in updateSelectedKeys()190 selectedKeys.remove(ski); in implDereg()
110 if (selectedKeys.contains(ski)) { in updateSelectedKeys()117 selectedKeys.add(ski); in updateSelectedKeys()141 selectedKeys = null; in implClose()176 selectedKeys.remove(ski); in implDereg()
115 if (selectedKeys.contains(ski)) { in updateSelectedKeys()122 selectedKeys.add(ski); in updateSelectedKeys()146 selectedKeys = null; in implClose()176 selectedKeys.remove(ski); in implDereg()
125 sel.selectedKeys().remove(sk); in accept()
127 sel.selectedKeys().remove(sk); in connect()243 sel.selectedKeys().remove(sk); in read()
200 sel.selectedKeys().remove(sk); in receive()
275 public abstract Set<SelectionKey> selectedKeys(); in selectedKeys() method in Selector
69 public Set<SelectionKey> selectedKeys() { in selectedKeys() method in MockAbstractSelector