public class TCPController extends SocketChannelController
soLingerOnselectorManager, selectorPoolSizecodecFactory, configuration, dispatchMessageDispatcher, dispatchMessageThreadCount, handler, handleReadWriteConcurrently, localSocketAddress, log, readEventDispatcher, readThreadCount, sessionSet, sessionTimeout, socketOptions, soTimeout, started, stateListeners, statistics, statisticsInterval, writeEventDispatcher, writeThreadCount| 构造器和说明 |
|---|
TCPController() |
TCPController(Configuration configuration) |
TCPController(Configuration configuration,
CodecFactory codecFactory) |
TCPController(Configuration configuration,
Handler handler,
CodecFactory codecFactory) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
closeChannel(Selector selector) |
protected void |
doStart()
Inner startup
|
int |
getBacklog() |
void |
onAccept(SelectionKey selectionKey) |
void |
setBacklog(int backlog) |
void |
setPerformancePreferences(int connectionTime,
int latency,
int bandwidth) |
void |
unbind() |
buildSession, configureSocketChannel, dispatchReadEvent, dispatchWriteEvent, setSoLingerbind, buildSessionConfig, closeSelectionKey, 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, 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, waitonConnectpublic TCPController()
public TCPController(Configuration configuration)
public TCPController(Configuration configuration, CodecFactory codecFactory)
public TCPController(Configuration configuration, Handler handler, CodecFactory codecFactory)
public int getBacklog()
public void setBacklog(int backlog)
public void setPerformancePreferences(int connectionTime,
int latency,
int bandwidth)
protected void doStart()
throws IOException
NioControllerdoStart 在类中 NioControllerIOExceptionpublic void onAccept(SelectionKey selectionKey) throws IOException
onAccept 在接口中 SelectionKeyHandleronAccept 在类中 AbstractControllerIOExceptionpublic void closeChannel(Selector selector) throws IOException
IOExceptionpublic void unbind()
throws IOException
IOExceptionCopyright © 2013. All Rights Reserved.