public abstract class NioSession extends AbstractIoSession
IoSession
which is managed by the NIO transport.Modifier and Type | Field and Description |
---|---|
protected Channel |
channel
The communication channel
|
protected IoProcessor<NioSession> |
processor
The NioSession processor
|
CLOSE_REQUEST, config, MESSAGE_SENT_REQUEST
Modifier | Constructor and Description |
---|---|
protected |
NioSession(IoProcessor<NioSession> processor,
IoService service,
Channel channel)
Creates a new instance of NioSession, with its associated IoProcessor.
|
Modifier and Type | Method and Description |
---|---|
IoFilterChain |
getFilterChain() |
IoProcessor<NioSession> |
getProcessor() |
boolean |
isActive() |
close, close, closeNow, closeOnFlush, containsAttribute, decreaseReadBufferSize, decreaseScheduledBytesAndMessages, destroy, 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, isServer, 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
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getLocalAddress, getRemoteAddress, getTransportMetadata
protected final IoProcessor<NioSession> processor
protected final Channel channel
protected NioSession(IoProcessor<NioSession> processor, IoService service, Channel channel)
processor
- The associated IoProcessor
service
- The associated IoService
channel
- The associated Channel
public IoFilterChain getFilterChain()
public IoProcessor<NioSession> getProcessor()
getProcessor
in class AbstractIoSession
public final boolean isActive()
isActive
in interface IoSession
isActive
in class AbstractIoSession
Copyright © 2004–2022 Apache MINA Project. All rights reserved.