Package one.nio.server.acceptor
Class MultiAcceptSession
java.lang.Object
one.nio.net.Session
one.nio.server.acceptor.MultiAcceptSession
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from class one.nio.net.Session
Session.ArrayQueueItem, Session.QueueItem -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final int(package private) final MultiAcceptorGroup(package private) final intFields 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
ConstructorsConstructorDescriptionMultiAcceptSession(Socket socket, int backlog, MultiAcceptorGroup group, int idx) -
Method Summary
Modifier and TypeMethodDescription(package private) static intacceptOp()(package private) voidvoidreconfigure(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 Details
-
backlog
final int backlog -
group
-
idx
final int idx
-
-
Constructor Details
-
MultiAcceptSession
MultiAcceptSession(Socket socket, int backlog, MultiAcceptorGroup group, int idx)
-
-
Method Details
-
listen
- Throws:
IOException
-
reconfigure
- Throws:
IOException
-
acceptOp
static int acceptOp()
-