public class WebSocketClientSelectorManager extends SelectorManager
SelectorManager.ManagedSelector, SelectorManager.SelectableEndPointAbstractLifeCycle.AbstractLifeCycleListenerLifeCycle.ListenerDEFAULT_CONNECT_TIMEOUT, SUBMIT_KEY_UPDATES| Constructor and Description |
|---|
WebSocketClientSelectorManager(WebSocketClient client) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
connectionFailed(SocketChannel channel,
Throwable ex,
Object attachment) |
WebSocketPolicy |
getPolicy() |
SslContextFactory |
getSslContextFactory() |
Connection |
newConnection(SocketChannel channel,
EndPoint endPoint,
Object attachment) |
protected EndPoint |
newEndPoint(SocketChannel channel,
SelectorManager.ManagedSelector selectSet,
SelectionKey selectionKey) |
SSLEngine |
newSSLEngine(SslContextFactory sslContextFactory,
SocketChannel channel) |
UpgradeConnection |
newUpgradeConnection(SocketChannel channel,
EndPoint endPoint,
ConnectPromise connectPromise) |
void |
setSslContextFactory(SslContextFactory sslContextFactory) |
accept, accept, accepted, acceptor, connect, connectionClosed, connectionOpened, doStart, doStop, dump, dump, endPointClosed, endPointOpened, execute, finishConnect, getConnectTimeout, getExecutor, getScheduler, getSelectorCount, getSelectorPriorityDelta, newSelector, setConnectTimeout, setSelectorPriorityDeltaaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stoppublic WebSocketClientSelectorManager(WebSocketClient client)
protected void connectionFailed(SocketChannel channel, Throwable ex, Object attachment)
connectionFailed in class SelectorManagerpublic SslContextFactory getSslContextFactory()
public Connection newConnection(SocketChannel channel, EndPoint endPoint, Object attachment) throws IOException
newConnection in class SelectorManagerIOExceptionprotected EndPoint newEndPoint(SocketChannel channel, SelectorManager.ManagedSelector selectSet, SelectionKey selectionKey) throws IOException
newEndPoint in class SelectorManagerIOExceptionpublic SSLEngine newSSLEngine(SslContextFactory sslContextFactory, SocketChannel channel)
public UpgradeConnection newUpgradeConnection(SocketChannel channel, EndPoint endPoint, ConnectPromise connectPromise)
public void setSslContextFactory(SslContextFactory sslContextFactory)
public WebSocketPolicy getPolicy()
Copyright © 1995-2015 Webtide. All Rights Reserved.