Searched refs:selectedKeys (Results 1 - 25 of 49) sorted by relevance

12

/openjdk7/jdk/test/java/nio/channels/Selector/
H A DKeySets.java65 sel.selectedKeys();
75 sel.selectedKeys();
150 // 4778099: Selector.selectedKeys() should allow removal but not addition
153 testNoAddition(sel.selectedKeys());
156 int n = sel.selectedKeys().size();
157 sel.selectedKeys().remove(sk);
158 if (sel.selectedKeys().size() != n - 1)
164 sel.selectedKeys().retainAll(hs);
165 if (sel.selectedKeys().isEmpty())
167 sel.selectedKeys()
[all...]
H A DSelectWrite.java49 sel.selectedKeys().clear();
H A DConnectWrite.java58 Set readyKeys = selector.selectedKeys();
74 Set readyKeys = selector.selectedKeys();
H A DChangingInterests.java80 sel.selectedKeys().clear();
92 for (SelectionKey k: sel.selectedKeys()) {
113 sel.selectedKeys().clear();
H A DOutOfBand.java118 SelectionKey key = sel.selectedKeys().iterator().next();
129 sel.selectedKeys().clear();
H A DRacyDeregister.java134 if (sel.selectedKeys().contains(key[0]) && key[0].isWritable()) {
145 sel.selectedKeys().clear();
H A DAlias.java68 Set readyKeys = selector.selectedKeys();
H A DConnect.java65 Set<SelectionKey> readyKeys = RSelector.selectedKeys();
H A DLotsOfChannels.java64 sel.selectedKeys().clear();
H A DOpRead.java65 Set<SelectionKey> keys = selector.selectedKeys();
H A DSelectAfterRead.java70 sel.selectedKeys().clear();
/openjdk7/jdk/test/java/nio/channels/SocketChannel/
H A DConnect.java79 Set selectedKeys = selector.selectedKeys();
81 if(selectedKeys.isEmpty()) {
86 else if(!selectedKeys.contains(sk))
117 selectedKeys.clear();
H A DIsConnectable.java57 Set<SelectionKey> sel = selector.selectedKeys();
/openjdk7/jdk/src/share/classes/sun/nio/ch/
H A DSelectorImpl.java45 protected Set<SelectionKey> selectedKeys; field in class:SelectorImpl
57 selectedKeys = new HashSet<SelectionKey>();
60 publicSelectedKeys = selectedKeys;
63 publicSelectedKeys = Util.ungrowableSet(selectedKeys);
73 public Set<SelectionKey> selectedKeys() { method in class:SelectorImpl
142 // Precondition: Synchronized on this, keys, and selectedKeys
H A DAbstractPollSelectorImpl.java103 selectedKeys = null;
124 if (selectedKeys.contains(sk)) {
131 selectedKeys.add(sk);
188 // Remove the key from keys and selectedKeys
190 selectedKeys.remove(ski);
/openjdk7/jdk/src/share/classes/java/nio/channels/
H A DSelector.java60 * This set is returned by the {@link #selectedKeys() selectedKeys} method.
275 public abstract Set<SelectionKey> selectedKeys(); method in class:Selector
/openjdk7/jdk/test/java/nio/channels/DatagramChannel/
H A DSelectWhenRefused.java56 sel.selectedKeys().clear();
69 sel.selectedKeys().clear();
/openjdk7/jdk/src/macosx/classes/sun/nio/ch/
H A DKQueueSelectorImpl.java140 if (selectedKeys.contains(ski)) {
155 selectedKeys.add(ski);
189 selectedKeys = null;
225 selectedKeys.remove(ski);
/openjdk7/jdk/src/share/sample/nio/server/
H A DDispatcher1.java75 for (Iterator i = sel.selectedKeys().iterator(); i.hasNext(); ) {
H A DDispatcherN.java76 for (Iterator i = sel.selectedKeys().iterator(); i.hasNext(); ) {
/openjdk7/jdk/src/solaris/classes/sun/nio/ch/
H A DDevPollSelectorImpl.java115 if (selectedKeys.contains(ski)) {
122 selectedKeys.add(ski);
146 selectedKeys = null;
176 selectedKeys.remove(ski);
H A DEPollSelectorImpl.java110 if (selectedKeys.contains(ski)) {
117 selectedKeys.add(ski);
141 selectedKeys = null;
176 selectedKeys.remove(ski);
H A DEventPortSelectorImpl.java92 if (selectedKeys.contains(ski)) {
99 selectedKeys.add(ski);
119 selectedKeys = null;
147 selectedKeys.remove(ski);
/openjdk7/jdk/test/java/nio/channels/spi/SelectorProvider/inheritedChannel/
H A DStateTest.java74 sel.selectedKeys().remove(sk);
102 sel.selectedKeys().remove(sk);
H A DCloseTest.java78 sel.selectedKeys().remove(sk);

Completed in 44 milliseconds

12