public class WebSocketClient extends ContainerLifeCycle implements SessionListener
AbstractLifeCycle.AbstractLifeCycleListenerContainer.InheritedListener, Container.ListenerLifeCycle.Listener| Constructor and Description |
|---|
WebSocketClient() |
WebSocketClient(ByteBufferPool bufferPool) |
WebSocketClient(Executor executor) |
WebSocketClient(SslContextFactory sslContextFactory) |
WebSocketClient(SslContextFactory sslContextFactory,
Executor executor) |
WebSocketClient(SslContextFactory sslContextFactory,
Executor executor,
ByteBufferPool bufferPool) |
addBean, addBean, addBean, addEventListener, addManaged, contains, destroy, 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 WebSocketClient()
public WebSocketClient(Executor executor)
public WebSocketClient(ByteBufferPool bufferPool)
public WebSocketClient(SslContextFactory sslContextFactory)
public WebSocketClient(SslContextFactory sslContextFactory, Executor executor)
public WebSocketClient(SslContextFactory sslContextFactory, Executor executor, ByteBufferPool bufferPool)
public Future<Session> connect(Object websocket, URI toUri) throws IOException
IOExceptionpublic Future<Session> connect(Object websocket, URI toUri, ClientUpgradeRequest request) throws IOException
IOExceptionpublic Future<Session> connect(Object websocket, URI toUri, ClientUpgradeRequest request, UpgradeListener upgradeListener) throws IOException
IOExceptionprotected void doStart()
throws Exception
doStart in class ContainerLifeCycleExceptionprotected void doStop()
throws Exception
doStop in class ContainerLifeCycleExceptionpublic long getAsyncWriteTimeout()
public SocketAddress getBindAddress()
public ByteBufferPool getBufferPool()
public ConnectionManager getConnectionManager()
public long getConnectTimeout()
public CookieStore getCookieStore()
public EventDriverFactory getEventDriverFactory()
public Executor getExecutor()
public ExtensionFactory getExtensionFactory()
public Masker getMasker()
public int getMaxBinaryMessageBufferSize()
public long getMaxBinaryMessageSize()
public long getMaxIdleTimeout()
public int getMaxTextMessageBufferSize()
public long getMaxTextMessageSize()
public Set<WebSocketSession> getOpenSessions()
public WebSocketPolicy getPolicy()
public Scheduler getScheduler()
public SessionFactory getSessionFactory()
public SslContextFactory getSslContextFactory()
SslContextFactory that manages TLS encryptionWebSocketClient(SslContextFactory)public List<Extension> initExtensions(List<ExtensionConfig> requested)
protected ConnectionManager newConnectionManager()
public void onSessionClosed(WebSocketSession session)
onSessionClosed in interface SessionListenerpublic void onSessionOpened(WebSocketSession session)
onSessionOpened in interface SessionListenerpublic void setAsyncWriteTimeout(long ms)
public void setBindAdddress(SocketAddress bindAddress)
public void setBufferPool(ByteBufferPool bufferPool)
public void setConnectTimeout(long ms)
ms - the timeout in millisecondspublic void setCookieStore(CookieStore cookieStore)
public void setDaemon(boolean daemon)
public void setEventDriverFactory(EventDriverFactory factory)
public void setExecutor(Executor executor)
public void setMasker(Masker masker)
public void setMaxBinaryMessageBufferSize(int max)
public void setMaxIdleTimeout(long ms)
Existing connections will not have their max idle timeout adjusted.
ms - the timeout in millisecondspublic void setMaxTextMessageBufferSize(int max)
public void setSessionFactory(SessionFactory sessionFactory)
public void dump(Appendable out, String indent) throws IOException
dump in interface Dumpabledump in class ContainerLifeCycleIOExceptionCopyright © 1995-2016 Webtide. All Rights Reserved.