public class WebSocketClientFactory extends ContainerLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener
Container.InheritedListener, Container.Listener
LifeCycle.Listener
Constructor and Description |
---|
WebSocketClientFactory() |
WebSocketClientFactory(Executor threadPool) |
WebSocketClientFactory(Executor threadPool,
Scheduler scheduler) |
WebSocketClientFactory(Executor executor,
Scheduler scheduler,
SslContextFactory sslContextFactory) |
WebSocketClientFactory(SslContextFactory sslContextFactory) |
Modifier and Type | Method and Description |
---|---|
protected void |
doStart()
Starts the managed lifecycle beans in the order they were added.
|
protected void |
doStop()
Stops the managed lifecycle beans in the reverse order they were added.
|
SocketAddress |
getBindAddress()
The address to bind local physical (outgoing) TCP Sockets to.
|
ByteBufferPool |
getBufferPool() |
ConnectionManager |
getConnectionManager() |
Executor |
getExecutor() |
ExtensionRegistry |
getExtensionRegistry() |
WebSocketPolicy |
getPolicy() |
Scheduler |
getScheduler() |
List<Extension> |
initExtensions(List<ExtensionConfig> requested) |
WebSocketClient |
newWebSocketClient(Object websocketPojo) |
boolean |
sessionClosed(WebSocketSession session) |
boolean |
sessionOpened(WebSocketSession session) |
void |
setBindAddress(SocketAddress bindAddress) |
addBean, addBean, addBean, contains, destroy, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, dumpThis, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, setStopTimeout, unmanage, updateBean, updateBeans
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
public WebSocketClientFactory()
public WebSocketClientFactory(Executor threadPool)
public WebSocketClientFactory(Executor executor, Scheduler scheduler, SslContextFactory sslContextFactory)
public WebSocketClientFactory(SslContextFactory sslContextFactory)
protected void doStart() throws Exception
ContainerLifeCycle
doStart
in class ContainerLifeCycle
Exception
protected void doStop() throws Exception
ContainerLifeCycle
doStop
in class ContainerLifeCycle
Exception
public SocketAddress getBindAddress()
setBindAddress(SocketAddress)
public ByteBufferPool getBufferPool()
public ConnectionManager getConnectionManager()
public Executor getExecutor()
public ExtensionRegistry getExtensionRegistry()
public WebSocketPolicy getPolicy()
public Scheduler getScheduler()
public List<Extension> initExtensions(List<ExtensionConfig> requested)
public WebSocketClient newWebSocketClient(Object websocketPojo)
public boolean sessionClosed(WebSocketSession session)
public boolean sessionOpened(WebSocketSession session)
public void setBindAddress(SocketAddress bindAddress)
bindAddress
- the address to bind the socket channel togetBindAddress()
Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.