public class NetClient extends Object implements Measured
Multiple connections to different servers can be made using the same instance.
This client supports a configurable number of connection attempts and a configurable delay between attempts.
NOTE: This class has been automatically generated from theoriginal
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<NetClient> |
__TYPE_ARG |
Constructor and Description |
---|
NetClient(NetClient delegate) |
NetClient(Object delegate) |
Modifier and Type | Method and Description |
---|---|
Completable |
close()
Close the client.
|
Single<NetSocket> |
connect(int port,
String host)
Open a connection to a server at the specific
port and host . |
Single<NetSocket> |
connect(int port,
String host,
String serverName)
Open a connection to a server at the specific
port and host . |
Single<NetSocket> |
connect(SocketAddress remoteAddress)
Open a connection to a server at the specific
remoteAddress . |
Single<NetSocket> |
connect(SocketAddress remoteAddress,
String serverName)
Open a connection to a server at the specific
remoteAddress . |
boolean |
equals(Object o) |
NetClient |
getDelegate() |
int |
hashCode() |
boolean |
isMetricsEnabled()
Whether the metrics are enabled for this measured object
|
static NetClient |
newInstance(NetClient arg) |
Completable |
rxClose()
Close the client.
|
Single<NetSocket> |
rxConnect(int port,
String host)
Open a connection to a server at the specific
port and host . |
Single<NetSocket> |
rxConnect(int port,
String host,
String serverName)
Open a connection to a server at the specific
port and host . |
Single<NetSocket> |
rxConnect(SocketAddress remoteAddress)
Open a connection to a server at the specific
remoteAddress . |
Single<NetSocket> |
rxConnect(SocketAddress remoteAddress,
String serverName)
Open a connection to a server at the specific
remoteAddress . |
Single<Boolean> |
rxUpdateSSLOptions(SSLOptions options)
Like
updateSSLOptions(io.vertx.core.net.SSLOptions) 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) but supplying a handler that will be called when the update
happened (or has failed). |
String |
toString() |
Single<Boolean> |
updateSSLOptions(SSLOptions options)
Like
updateSSLOptions(io.vertx.core.net.SSLOptions) but supplying a handler that will be called when the update
happened (or has failed). |
Single<Boolean> |
updateSSLOptions(SSLOptions options,
boolean force)
Like
updateSSLOptions(io.vertx.core.net.SSLOptions) but supplying a handler that will be called when the update
happened (or has failed). |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
newInstance
public static final io.vertx.lang.rx.TypeArg<NetClient> __TYPE_ARG
public NetClient(NetClient delegate)
public NetClient(Object delegate)
public NetClient getDelegate()
getDelegate
in interface Measured
public boolean isMetricsEnabled()
isMetricsEnabled
in interface Measured
true
if metrics are enabledpublic Single<NetSocket> connect(int port, String host)
port
and host
.
host
can be a valid host name or IP address. The connect is done asynchronously and on success, a
NetSocket
instance is supplied via the connectHandler
instance
port
- the porthost
- the hostpublic Single<NetSocket> rxConnect(int port, String host)
port
and host
.
host
can be a valid host name or IP address. The connect is done asynchronously and on success, a
NetSocket
instance is supplied via the connectHandler
instance
port
- the porthost
- the hostpublic Single<NetSocket> connect(int port, String host, String serverName)
port
and host
.
host
can be a valid host name or IP address. The connect is done asynchronously and on success, a
NetSocket
instance is supplied via the connectHandler
instance
port
- the porthost
- the hostserverName
- the SNI server namepublic Single<NetSocket> rxConnect(int port, String host, String serverName)
port
and host
.
host
can be a valid host name or IP address. The connect is done asynchronously and on success, a
NetSocket
instance is supplied via the connectHandler
instance
port
- the porthost
- the hostserverName
- the SNI server namepublic Single<NetSocket> connect(SocketAddress remoteAddress)
remoteAddress
.
The connect is done asynchronously and on success, a NetSocket
instance is supplied via the connectHandler
instance
remoteAddress
- the remote addresspublic Single<NetSocket> rxConnect(SocketAddress remoteAddress)
remoteAddress
.
The connect is done asynchronously and on success, a NetSocket
instance is supplied via the connectHandler
instance
remoteAddress
- the remote addresspublic Single<NetSocket> connect(SocketAddress remoteAddress, String serverName)
remoteAddress
.
The connect is done asynchronously and on success, a NetSocket
instance is supplied via the connectHandler
instance
remoteAddress
- the remote addressserverName
- the SNI server namepublic Single<NetSocket> rxConnect(SocketAddress remoteAddress, String serverName)
remoteAddress
.
The connect is done asynchronously and on success, a NetSocket
instance is supplied via the connectHandler
instance
remoteAddress
- the remote addressserverName
- the SNI server namepublic Completable close()
Any sockets which have not been closed manually will be closed here. The close is asynchronous and may not complete until some time after the method has returned.
public Completable rxClose()
Any sockets which have not been closed manually will be closed here. The close is asynchronous and may not complete until some time after the method has returned.
public Single<Boolean> updateSSLOptions(SSLOptions options)
updateSSLOptions(io.vertx.core.net.SSLOptions)
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)
but supplying a handler that will be called when the update
happened (or has failed).options
- the new SSL optionspublic Single<Boolean> updateSSLOptions(SSLOptions options, boolean force)
updateSSLOptions(io.vertx.core.net.SSLOptions)
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)
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 equalsCopyright © 2024 Eclipse. All rights reserved.