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, writegetLocalAddress, getRemoteAddress, getTransportMetadataprotected 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 IoProcessorservice - The associated IoServicechannel - The associated Channelpublic IoFilterChain getFilterChain()
public IoProcessor<NioSession> getProcessor()
getProcessor 在类中 AbstractIoSessionpublic final boolean isActive()
isActive 在接口中 IoSessionisActive 在类中 AbstractIoSession