public class WebSocketClient extends ContainerLifeCycle implements SessionListener, WebSocketContainerScope
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) |
WebSocketClient(SslContextFactory sslContextFactory,
Executor executor,
ByteBufferPool bufferPool,
DecoratedObjectFactory objectFactory) |
WebSocketClient(WebSocketContainerScope scope) |
WebSocketClient(WebSocketContainerScope scope,
SslContextFactory sslContextFactory) |
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, 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(WebSocketContainerScope scope)
public WebSocketClient(WebSocketContainerScope scope, SslContextFactory sslContextFactory)
public WebSocketClient(SslContextFactory sslContextFactory, Executor executor, ByteBufferPool bufferPool)
public WebSocketClient(SslContextFactory sslContextFactory, Executor executor, ByteBufferPool bufferPool, DecoratedObjectFactory objectFactory)
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 boolean isDispatchIO()
public long getAsyncWriteTimeout()
public SocketAddress getBindAddress()
public ByteBufferPool getBufferPool()
getBufferPool in interface WebSocketContainerScopepublic ConnectionManager getConnectionManager()
public long getConnectTimeout()
public CookieStore getCookieStore()
public EventDriverFactory getEventDriverFactory()
public Executor getExecutor()
getExecutor in interface WebSocketContainerScopepublic ExtensionFactory getExtensionFactory()
public Masker getMasker()
public int getMaxBinaryMessageBufferSize()
public long getMaxBinaryMessageSize()
public long getMaxIdleTimeout()
public int getMaxTextMessageBufferSize()
public long getMaxTextMessageSize()
public DecoratedObjectFactory getObjectFactory()
getObjectFactory in interface WebSocketContainerScopepublic Set<WebSocketSession> getOpenSessions()
public WebSocketPolicy getPolicy()
getPolicy in interface WebSocketContainerScopepublic Scheduler getScheduler()
public SessionFactory getSessionFactory()
public SslContextFactory getSslContextFactory()
getSslContextFactory in interface WebSocketContainerScopeSslContextFactory that manages TLS encryptionWebSocketClient(SslContextFactory)protected ConnectionManager newConnectionManager()
public void onSessionClosed(WebSocketSession session)
onSessionClosed in interface SessionListenerpublic void onSessionOpened(WebSocketSession session)
onSessionOpened in interface SessionListenerpublic void setAsyncWriteTimeout(long ms)
@Deprecated public void setBindAdddress(SocketAddress bindAddress)
setBindAddress(SocketAddress) insteadbindAddress - the address to bind topublic void setBindAddress(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 setDispatchIO(boolean dispatchIO)
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-2015 Webtide. All Rights Reserved.