protected static class NioProcessor.IoSessionIterator<NioSession>
extends java.lang.Object
implements java.util.Iterator<NioSession>
Selector.selectedKeys() or
the Selector.keys() iterator;| Modifier and Type | Field and Description |
|---|---|
private java.util.Iterator<java.nio.channels.SelectionKey> |
iterator |
| Modifier | Constructor and Description |
|---|---|
private |
IoSessionIterator(java.util.Set<java.nio.channels.SelectionKey> keys)
Create this iterator as a wrapper on top of the selectionKey Set.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
NioSession |
next() |
void |
remove() |
private IoSessionIterator(java.util.Set<java.nio.channels.SelectionKey> keys)
keys - The set of selected sessionspublic boolean hasNext()
hasNext in interface java.util.Iterator<NioSession>public NioSession next()
next in interface java.util.Iterator<NioSession>public void remove()
remove in interface java.util.Iterator<NioSession>