Searched refs:selectedKeys (Results 1 – 10 of 10) 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()
344 public abstract Set<SelectionKey> selectedKeys(); in selectedKeys() method in Selector563 Set<SelectionKey> selectedKeys = selectedKeys(); in doSelect() local564 synchronized (selectedKeys) { in doSelect()565 selectedKeys.clear(); in doSelect()574 Set<SelectionKey> keysToConsume = Set.copyOf(selectedKeys); in doSelect()576 selectedKeys.clear(); in doSelect()
44 protected Set<SelectionKey> selectedKeys; field in SelectorImpl56 selectedKeys = new HashSet<SelectionKey>(); in SelectorImpl()59 publicSelectedKeys = selectedKeys; in SelectorImpl()62 publicSelectedKeys = Util.ungrowableSet(selectedKeys); in SelectorImpl()72 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()
44 public java.util.Set<java.nio.channels.SelectionKey> selectedKeys() { in selectedKeys() method in SelectorImpl101 protected java.util.Set<java.nio.channels.SelectionKey> selectedKeys; field in SelectorImpl
516 assertTrue(Thread.holdsLock(sel.selectedKeys())); in testLocks()524 assertTrue(Thread.holdsLock(sel.selectedKeys())); in testLocks()532 assertTrue(Thread.holdsLock(sel.selectedKeys())); in testLocks()566 assertTrue(sel.selectedKeys().contains(key1)); in testCancel()567 assertTrue(sel.selectedKeys().contains(key2)); in testCancel()576 assertFalse(sel.selectedKeys().contains(key1)); in testCancel()577 assertTrue(sel.selectedKeys().contains(key2)); in testCancel()585 assertFalse(sel.selectedKeys().contains(key1)); in testCancel()586 assertFalse(sel.selectedKeys().contains(key2)); in testCancel()
76 sel.selectedKeys().clear(); in testSelectAfterRead()
69 public Set<SelectionKey> selectedKeys() { in selectedKeys() method in MockAbstractSelector
6508 method public abstract java.util.Set<java.nio.channels.SelectionKey> selectedKeys();