protected class ConnectHandler.ConnectManager extends SelectorManager
AbstractLifeCycle.AbstractLifeCycleListener
Container.InheritedListener, Container.Listener
LifeCycle.Listener
DEFAULT_CONNECT_TIMEOUT, LOG
FAILED, RUNNING, STARTED, STARTING, STOP_ON_FAILURE, STOPPED, STOPPING
Modifier | Constructor and Description |
---|---|
protected |
ConnectManager(Executor executor,
Scheduler scheduler,
int selectors) |
Modifier and Type | Method and Description |
---|---|
protected void |
connectionFailed(SocketChannel channel,
Throwable ex,
Object attachment) |
Connection |
newConnection(SocketChannel channel,
EndPoint endpoint,
Object attachment) |
protected EndPoint |
newEndPoint(SocketChannel channel,
ManagedSelector selector,
SelectionKey selectionKey) |
accept, accept, accepted, acceptor, connect, connectionClosed, connectionOpened, doStart, doStop, endPointClosed, endPointOpened, execute, finishConnect, getConnectTimeout, getExecutionStrategyFactory, getExecutor, getScheduler, getSelectorCount, getSelectorPriorityDelta, newSelector, setConnectTimeout, setExecutionStrategyFactory, setSelectorPriorityDelta
addBean, addBean, addBean, addEventListener, addManaged, contains, destroy, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, dumpThis, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeans
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
protected EndPoint newEndPoint(SocketChannel channel, ManagedSelector selector, 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 connectionFailed(SocketChannel channel, Throwable ex, Object attachment)
connectionFailed
in class SelectorManager
Copyright © 1995–2017 Webtide. All rights reserved.