protected class ServerConnector.ServerConnectorManager extends SelectorManager
AbstractLifeCycle.AbstractLifeCycleListener
LifeCycle.Listener
DEFAULT_CONNECT_TIMEOUT, LOG
Constructor and Description |
---|
ServerConnectorManager(Executor executor,
Scheduler scheduler,
int selectors) |
Modifier and Type | Method and Description |
---|---|
protected void |
accepted(SocketChannel channel) |
protected void |
endPointClosed(EndPoint endpoint) |
protected void |
endPointOpened(EndPoint endpoint) |
Connection |
newConnection(SocketChannel channel,
EndPoint endpoint,
Object attachment) |
protected SelectChannelEndPoint |
newEndPoint(SocketChannel channel,
ManagedSelector selectSet,
SelectionKey selectionKey) |
accept, accept, acceptor, connect, connectionClosed, connectionFailed, connectionOpened, doStart, doStop, dump, dump, execute, finishConnect, getConnectTimeout, getExecutor, getScheduler, getSelectorCount, getSelectorPriorityDelta, newSelector, setConnectTimeout, setSelectorPriorityDelta
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop
protected void accepted(SocketChannel channel) throws IOException
accepted
in class SelectorManager
IOException
protected SelectChannelEndPoint newEndPoint(SocketChannel channel, ManagedSelector selectSet, SelectionKey selectionKey) throws IOException
newEndPoint
in class SelectorManager
IOException
public Connection newConnection(SocketChannel channel, EndPoint endpoint, Object attachment) throws IOException
newConnection
in class SelectorManager
IOException
protected void endPointOpened(EndPoint endpoint)
endPointOpened
in class SelectorManager
protected void endPointClosed(EndPoint endpoint)
endPointClosed
in class SelectorManager
Copyright © 1995-2015 Webtide. All Rights Reserved.