public abstract class SocketChannelController extends NioController
| 限定符和类型 | 字段和说明 |
|---|---|
protected boolean |
soLingerOn |
selectorManager, selectorPoolSizecodecFactory, configuration, dispatchMessageDispatcher, dispatchMessageThreadCount, handler, handleReadWriteConcurrently, localSocketAddress, log, readEventDispatcher, readThreadCount, sessionSet, sessionTimeout, socketOptions, soTimeout, started, stateListeners, statistics, statisticsInterval, writeEventDispatcher, writeThreadCount| 构造器和说明 |
|---|
SocketChannelController() |
SocketChannelController(Configuration configuration) |
SocketChannelController(Configuration configuration,
CodecFactory codecFactory) |
SocketChannelController(Configuration configuration,
Handler handler,
CodecFactory codecFactory) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected NioSession |
buildSession(SocketChannel sc) |
protected void |
configureSocketChannel(SocketChannel sc)
Confiure socket channel
|
protected void |
dispatchReadEvent(SelectionKey key)
Dispatch read event
|
protected void |
dispatchWriteEvent(SelectionKey key)
Dispatch write event
|
void |
setSoLinger(boolean on,
int value) |
bind, buildSessionConfig, closeSelectionKey, doStart, getSelectorManager, getSelectorPoolSize, initialSelectorManager, onRead, onWrite, setSelectorPoolSize, start0, stop0addStateListener, bind, buildQueue, checkStatisticsForRestart, getCodecFactory, getConfiguration, getDispatchMessageThreadCount, getHandler, getLocalSocketAddress, getPort, getReadThreadCount, getReceiveThroughputLimit, getSendThroughputLimit, getSessionIdleTimeout, getSessionSet, getSessionTimeout, getSocketOption, getSoTimeout, getStatistics, getWriteThreadCount, isHandleReadWriteConcurrently, isStarted, notifyAllSessionClosed, notifyException, notifyReady, notifyStarted, notifyStopped, onAccept, onConnect, registerSession, removeStateListener, setCodecFactory, setConfiguration, setDispatchMessageThreadCount, setHandler, setHandleReadWriteConcurrently, setLocalSocketAddress, setReadThreadCount, setReceiveThroughputLimit, setSendThroughputLimit, setSessionIdleTimeout, setSessionTimeout, setSocketOption, setSocketOptions, setSoTimeout, setWriteThreadCount, start, stop, unregisterSessionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseChannel, onAccept, onConnectpublic SocketChannelController()
public SocketChannelController(Configuration configuration)
public SocketChannelController(Configuration configuration, CodecFactory codecFactory)
public SocketChannelController(Configuration configuration, Handler handler, CodecFactory codecFactory)
public void setSoLinger(boolean on,
int value)
protected final void dispatchReadEvent(SelectionKey key)
NioControllerdispatchReadEvent 在类中 NioControllerprotected final void dispatchWriteEvent(SelectionKey key)
NioControllerdispatchWriteEvent 在类中 NioControllerprotected NioSession buildSession(SocketChannel sc)
protected final void configureSocketChannel(SocketChannel sc) throws IOException
sc - IOExceptionCopyright © 2013. All Rights Reserved.