public abstract class NioSession extends AbstractIoSession
IoSession
which is managed by the NIO transport.限定符和类型 | 字段和说明 |
---|---|
protected java.nio.channels.Channel |
channel
The communication channel
|
protected IoProcessor<NioSession> |
processor
The NioSession processor
|
config
限定符 | 构造器和说明 |
---|---|
protected |
NioSession(IoProcessor<NioSession> processor,
IoService service,
java.nio.channels.Channel channel)
Creates a new instance of NioSession, with its associated IoProcessor.
|
限定符和类型 | 方法和说明 |
---|---|
IoFilterChain |
getFilterChain() |
IoProcessor<NioSession> |
getProcessor() |
boolean |
isActive() |
close, close, closeNow, closeOnFlush, 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, write
getLocalAddress, getRemoteAddress, getTransportMetadata
protected final IoProcessor<NioSession> processor
protected final java.nio.channels.Channel channel
protected NioSession(IoProcessor<NioSession> processor, IoService service, java.nio.channels.Channel channel)
processor
- The associated IoProcessor
service
- The associated IoService
channel
- The associated Channel
public IoFilterChain getFilterChain()
public IoProcessor<NioSession> getProcessor()
getProcessor
在类中 AbstractIoSession
public final boolean isActive()
isActive
在接口中 IoSession
isActive
在类中 AbstractIoSession