Class NioSession
- java.lang.Object
-
- org.apache.mina.core.session.AbstractIoSession
-
- org.apache.mina.transport.socket.nio.NioSession
-
- All Implemented Interfaces:
IoSession
public abstract class NioSession extends AbstractIoSession
AnIoSessionwhich is managed by the NIO transport.- Author:
- Apache MINA Project
-
-
Field Summary
Fields Modifier and Type Field Description protected ChannelchannelThe communication channelprotected IoProcessor<NioSession>processorThe NioSession processor-
Fields inherited from class org.apache.mina.core.session.AbstractIoSession
CLOSE_REQUEST, config, MESSAGE_SENT_REQUEST
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNioSession(IoProcessor<NioSession> processor, IoService service, Channel channel)Creates a new instance of NioSession, with its associated IoProcessor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IoFilterChaingetFilterChain()IoProcessor<NioSession>getProcessor()booleanisActive()-
Methods inherited from class org.apache.mina.core.session.AbstractIoSession
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, 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
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.mina.core.session.IoSession
getLocalAddress, getRemoteAddress, getTransportMetadata
-
-
-
-
Field Detail
-
processor
protected final IoProcessor<NioSession> processor
The NioSession processor
-
channel
protected final Channel channel
The communication channel
-
-
Constructor Detail
-
NioSession
protected NioSession(IoProcessor<NioSession> processor, IoService service, Channel channel)
Creates a new instance of NioSession, with its associated IoProcessor.
This method is only called by the inherited class.- Parameters:
processor- The associatedIoProcessorservice- The associatedIoServicechannel- The associatedChannel
-
-
Method Detail
-
getFilterChain
public IoFilterChain getFilterChain()
- Returns:
- the filter chain that only affects this session.
-
getProcessor
public IoProcessor<NioSession> getProcessor()
- Specified by:
getProcessorin classAbstractIoSession- Returns:
- The associated IoProcessor for this session
-
isActive
public final boolean isActive()
- Specified by:
isActivein interfaceIoSession- Overrides:
isActivein classAbstractIoSession- Returns:
- true if this session is active.
-
-