Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<WebSocketClient> |
__TYPE_ARG |
Constructor and Description |
---|
WebSocketClient(Object delegate) |
WebSocketClient(WebSocketClient delegate) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the client.
|
void |
close(Handler<AsyncResult<Void>> handler)
Close the client.
|
void |
connect(int port,
String host,
String requestURI)
Connect a WebSocket to the specified port, host and relative request URI
|
void |
connect(int port,
String host,
String requestURI,
Handler<AsyncResult<WebSocket>> handler)
Connect a WebSocket to the specified port, host and relative request URI
|
void |
connect(String requestURI)
Connect a WebSocket to the default client port, default client host and specified, relative request URI.
|
void |
connect(String requestURI,
Handler<AsyncResult<WebSocket>> handler)
Connect a WebSocket to the default client port, default client host and specified, relative request URI.
|
void |
connect(String host,
String requestURI)
Connect a WebSocket to the default client port and specified host and relative request URI.
|
void |
connect(String host,
String requestURI,
Handler<AsyncResult<WebSocket>> handler)
Connect a WebSocket to the default client port and specified host and relative request URI.
|
void |
connect(WebSocketConnectOptions options)
Connect a WebSocket with the specified options.
|
void |
connect(WebSocketConnectOptions options,
Handler<AsyncResult<WebSocket>> handler)
Connect a WebSocket with the specified options.
|
boolean |
equals(Object o) |
WebSocketClient |
getDelegate() |
int |
hashCode() |
boolean |
isMetricsEnabled()
Whether the metrics are enabled for this measured object
|
static WebSocketClient |
newInstance(WebSocketClient arg) |
Completable |
rxClose()
Close the client.
|
Single<WebSocket> |
rxConnect(int port,
String host,
String requestURI)
Connect a WebSocket to the specified port, host and relative request URI
|
Single<WebSocket> |
rxConnect(String requestURI)
Connect a WebSocket to the default client port, default client host and specified, relative request URI.
|
Single<WebSocket> |
rxConnect(String host,
String requestURI)
Connect a WebSocket to the default client port and specified host and relative request URI.
|
Single<WebSocket> |
rxConnect(WebSocketConnectOptions options)
Connect a WebSocket with the specified options.
|
Single<Boolean> |
rxUpdateSSLOptions(SSLOptions options)
Like
updateSSLOptions(io.vertx.core.net.SSLOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Boolean>>) but supplying a handler that will be called when the update
happened (or has failed). |
Single<Boolean> |
rxUpdateSSLOptions(SSLOptions options,
boolean force)
Like
updateSSLOptions(io.vertx.core.net.SSLOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Boolean>>) but supplying a handler that will be called when the update
happened (or has failed). |
String |
toString() |
void |
updateSSLOptions(SSLOptions options)
Like
updateSSLOptions(io.vertx.core.net.SSLOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Boolean>>) but supplying a handler that will be called when the update
happened (or has failed). |
void |
updateSSLOptions(SSLOptions options,
boolean force)
Like
updateSSLOptions(io.vertx.core.net.SSLOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Boolean>>) but supplying a handler that will be called when the update
happened (or has failed). |
void |
updateSSLOptions(SSLOptions options,
boolean force,
Handler<AsyncResult<Boolean>> handler)
Like
updateSSLOptions(io.vertx.core.net.SSLOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Boolean>>) but supplying a handler that will be called when the update
happened (or has failed). |
void |
updateSSLOptions(SSLOptions options,
Handler<AsyncResult<Boolean>> handler)
Like
updateSSLOptions(io.vertx.core.net.SSLOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Boolean>>) but supplying a handler that will be called when the update
happened (or has failed). |
ClientWebSocket |
webSocket()
Create a WebSocket that is not yet connected to the server.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
newInstance
public static final io.vertx.lang.rx.TypeArg<WebSocketClient> __TYPE_ARG
public WebSocketClient(WebSocketClient delegate)
public WebSocketClient(Object delegate)
public WebSocketClient getDelegate()
getDelegate
in interface Measured
public boolean isMetricsEnabled()
isMetricsEnabled
in interface Measured
true
if metrics are enabledpublic ClientWebSocket webSocket()
public void connect(int port, String host, String requestURI, Handler<AsyncResult<WebSocket>> handler)
port
- the porthost
- the hostrequestURI
- the relative URIhandler
- handler that will be called with the WebSocket when connectedpublic void connect(int port, String host, String requestURI)
port
- the porthost
- the hostrequestURI
- the relative URIpublic Single<WebSocket> rxConnect(int port, String host, String requestURI)
port
- the porthost
- the hostrequestURI
- the relative URIpublic void connect(String host, String requestURI, Handler<AsyncResult<WebSocket>> handler)
host
- the hostrequestURI
- the relative URIhandler
- handler that will be called with the WebSocket when connectedpublic void connect(String host, String requestURI)
host
- the hostrequestURI
- the relative URIpublic Single<WebSocket> rxConnect(String host, String requestURI)
host
- the hostrequestURI
- the relative URIpublic void connect(String requestURI, Handler<AsyncResult<WebSocket>> handler)
requestURI
- the relative URIhandler
- handler that will be called with the WebSocket when connectedpublic void connect(String requestURI)
requestURI
- the relative URIpublic Single<WebSocket> rxConnect(String requestURI)
requestURI
- the relative URIpublic void connect(WebSocketConnectOptions options, Handler<AsyncResult<WebSocket>> handler)
options
- the request optionshandler
- public void connect(WebSocketConnectOptions options)
options
- the request optionspublic Single<WebSocket> rxConnect(WebSocketConnectOptions options)
options
- the request optionspublic void updateSSLOptions(SSLOptions options, Handler<AsyncResult<Boolean>> handler)
updateSSLOptions(io.vertx.core.net.SSLOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Boolean>>)
but supplying a handler that will be called when the update
happened (or has failed).options
- the new SSL optionshandler
- the update handlerpublic void updateSSLOptions(SSLOptions options)
updateSSLOptions(io.vertx.core.net.SSLOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Boolean>>)
but supplying a handler that will be called when the update
happened (or has failed).options
- the new SSL optionspublic Single<Boolean> rxUpdateSSLOptions(SSLOptions options)
updateSSLOptions(io.vertx.core.net.SSLOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Boolean>>)
but supplying a handler that will be called when the update
happened (or has failed).options
- the new SSL optionspublic void updateSSLOptions(SSLOptions options, boolean force, Handler<AsyncResult<Boolean>> handler)
updateSSLOptions(io.vertx.core.net.SSLOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Boolean>>)
but supplying a handler that will be called when the update
happened (or has failed).options
- the new SSL optionsforce
- force the update when options are equalshandler
- the update handlerpublic void updateSSLOptions(SSLOptions options, boolean force)
updateSSLOptions(io.vertx.core.net.SSLOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Boolean>>)
but supplying a handler that will be called when the update
happened (or has failed).options
- the new SSL optionsforce
- force the update when options are equalspublic Single<Boolean> rxUpdateSSLOptions(SSLOptions options, boolean force)
updateSSLOptions(io.vertx.core.net.SSLOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Boolean>>)
but supplying a handler that will be called when the update
happened (or has failed).options
- the new SSL optionsforce
- force the update when options are equalspublic void close(Handler<AsyncResult<Void>> handler)
handler
- public void close()
public Completable rxClose()
public static WebSocketClient newInstance(WebSocketClient arg)
Copyright © 2024 Eclipse. All rights reserved.