Package one.nio.server.acceptor
Class MultiAcceptSession
- java.lang.Object
-
- one.nio.net.Session
-
- one.nio.server.acceptor.MultiAcceptSession
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
class MultiAcceptSession extends Session
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class one.nio.net.Session
Session.ArrayQueueItem, Session.QueueItem
-
-
Field Summary
Fields Modifier and Type Field Description (package private) intbacklog(package private) MultiAcceptorGroupgroup(package private) intidx-
Fields inherited from class one.nio.net.Session
ACTIVE, closing, CLOSING, EVENT_MASK, events, eventsToListen, IDLE, lastAccessTime, log, queueHead, READABLE, selector, slot, socket, SSL, STALE, wasSelected, WRITEABLE
-
-
Constructor Summary
Constructors Constructor Description MultiAcceptSession(Socket socket, int backlog, MultiAcceptorGroup group, int idx)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static intacceptOp()(package private) voidlisten(Selector selector)voidreconfigure(AcceptorConfig newConfig)-
Methods inherited from class one.nio.net.Session
checkStatus, close, getQueueStats, getRemoteHost, handleException, isSsl, lastAccessTime, listen, process, processRead, processWrite, read, readRaw, scheduleClose, socket, write, write, write
-
-
-
-
Field Detail
-
backlog
final int backlog
-
group
final MultiAcceptorGroup group
-
idx
final int idx
-
-
Constructor Detail
-
MultiAcceptSession
MultiAcceptSession(Socket socket, int backlog, MultiAcceptorGroup group, int idx)
-
-
Method Detail
-
listen
void listen(Selector selector) throws java.io.IOException
- Throws:
java.io.IOException
-
reconfigure
public void reconfigure(AcceptorConfig newConfig) throws java.io.IOException
- Throws:
java.io.IOException
-
acceptOp
static int acceptOp()
-
-