Class NioProcessor.IoSessionIterator<NioSession>
java.lang.Object
org.apache.mina.transport.socket.nio.NioProcessor.IoSessionIterator<NioSession>
- All Implemented Interfaces:
Iterator<NioSession>
- Enclosing class:
NioProcessor
protected static class NioProcessor.IoSessionIterator<NioSession>
extends Object
implements Iterator<NioSession>
An encapsulating iterator around the
Selector.selectedKeys() or
the Selector.keys() iterator;-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateIoSessionIterator(Set<SelectionKey> keys) Create this iterator as a wrapper on top of the selectionKey Set. -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining
-
Field Details
-
iterator
-
-
Constructor Details
-
IoSessionIterator
Create this iterator as a wrapper on top of the selectionKey Set.- Parameters:
keys- The set of selected sessions
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<NioSession>
-
next
- Specified by:
nextin interfaceIterator<NioSession>
-
remove
public void remove()- Specified by:
removein interfaceIterator<NioSession>
-