public class ConnectionManager extends ContainerLifeCycle
AbstractLifeCycle.AbstractLifeCycleListenerContainer.InheritedListener, Container.ListenerLifeCycle.Listener| Constructor and Description |
|---|
ConnectionManager(WebSocketClient client) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSession(WebSocketSession session) |
ConnectPromise |
connect(WebSocketClient client,
EventDriver driver,
ClientUpgradeRequest request) |
protected void |
doStart() |
protected void |
doStop() |
WebSocketClientSelectorManager |
getSelector() |
Collection<WebSocketSession> |
getSessions() |
boolean |
isVirtualConnectionPossibleTo(String hostname) |
protected WebSocketClientSelectorManager |
newWebSocketClientSelectorManager(WebSocketClient client)
Factory method for new WebSocketClientSelectorManager (used by other projects like cometd)
|
void |
removeSession(WebSocketSession session) |
static InetSocketAddress |
toSocketAddress(URI uri) |
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, updateBeansaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stoppublic ConnectionManager(WebSocketClient client)
public static InetSocketAddress toSocketAddress(URI uri)
public void addSession(WebSocketSession session)
public ConnectPromise connect(WebSocketClient client, EventDriver driver, ClientUpgradeRequest request)
protected void doStart()
throws Exception
doStart in class ContainerLifeCycleExceptionprotected void doStop()
throws Exception
doStop in class ContainerLifeCycleExceptionpublic WebSocketClientSelectorManager getSelector()
public Collection<WebSocketSession> getSessions()
public boolean isVirtualConnectionPossibleTo(String hostname)
protected WebSocketClientSelectorManager newWebSocketClientSelectorManager(WebSocketClient client)
client - the client used to create the WebSocketClientSelectorManagerpublic void removeSession(WebSocketSession session)
Copyright © 1995-2016 Webtide. All Rights Reserved.