public abstract class NioSession extends AbstractIoSession
IoSession which is managed by the NIO transport.| Modifier and Type | Field and Description |
|---|---|
protected java.nio.channels.Channel |
channel
The communication channel
|
private IoFilterChain |
filterChain
The FilterChain created for this session
|
protected java.nio.channels.SelectionKey |
key
The SelectionKey used for this session
|
protected IoProcessor<NioSession> |
processor
The NioSession processor
|
config| Modifier | Constructor and Description |
|---|---|
protected |
NioSession(IoProcessor<NioSession> processor,
IoService service,
java.nio.channels.Channel channel)
Creates a new instance of NioSession, with its associated IoProcessor.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) abstract java.nio.channels.ByteChannel |
getChannel() |
IoFilterChain |
getFilterChain() |
IoProcessor<NioSession> |
getProcessor() |
(package private) java.nio.channels.SelectionKey |
getSelectionKey() |
(package private) void |
setSelectionKey(java.nio.channels.SelectionKey key)
Sets the
SelectionKey for this IoSession |
close, close, containsAttribute, decreaseReadBufferSize, decreaseScheduledBytesAndMessages, equals, getAttachment, getAttribute, getAttribute, getAttributeKeys, getAttributeMap, getBothIdleCount, getCloseFuture, getConfig, getCreationTime, getCurrentWriteMessage, getCurrentWriteRequest, getHandler, getId, getIdleCount, getLastBothIdleTime, getLastIdleTime, getLastIoTime, getLastReaderIdleTime, getLastReadTime, getLastWriterIdleTime, getLastWriteTime, getReadBytes, getReadBytesThroughput, getReaderIdleCount, getReadMessages, getReadMessagesThroughput, getScheduledWriteBytes, getScheduledWriteMessages, getService, getServiceAddress, getWriteRequestQueue, getWriterIdleCount, getWrittenBytes, getWrittenBytesThroughput, getWrittenMessages, getWrittenMessagesThroughput, hashCode, increaseIdleCount, increaseReadBufferSize, increaseReadBytes, increaseReadMessages, increaseScheduledWriteBytes, increaseScheduledWriteMessages, increaseWrittenBytes, increaseWrittenMessages, isBothIdle, isClosing, isConnected, isIdle, isReaderIdle, isReadSuspended, isScheduledForFlush, isSecured, isWriterIdle, isWriteSuspended, notifyIdleness, notifyIdleSession, offerClosedReadFuture, offerFailedReadFuture, offerReadFuture, read, removeAttribute, removeAttribute, replaceAttribute, resumeRead, resumeWrite, scheduledForFlush, setAttachment, setAttribute, setAttribute, setAttributeIfAbsent, setAttributeIfAbsent, setAttributeMap, setCurrentWriteRequest, setScheduledForFlush, setScheduledWriteBytes, setScheduledWriteMessages, setWriteRequestQueue, suspendRead, suspendWrite, toString, unscheduledForFlush, updateThroughput, write, writeclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetLocalAddress, getRemoteAddress, getTransportMetadataprotected final IoProcessor<NioSession> processor
protected final java.nio.channels.Channel channel
protected java.nio.channels.SelectionKey key
private final IoFilterChain filterChain
protected NioSession(IoProcessor<NioSession> processor, IoService service, java.nio.channels.Channel channel)
processor - The associated IoProcessorabstract java.nio.channels.ByteChannel getChannel()
IoSessionpublic IoFilterChain getFilterChain()
java.nio.channels.SelectionKey getSelectionKey()
SelectionKey associated with this IoSessionvoid setSelectionKey(java.nio.channels.SelectionKey key)
SelectionKey for this IoSessionkey - The new SelectionKeypublic IoProcessor<NioSession> getProcessor()
getProcessor in class AbstractIoSession