open class NetClient : Measured
A TCP client.
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 the io.vertx.core.net.NetClient non RX-ified interface using Vert.x codegen.
NetClient(delegate: NetClient) |
static val __TYPE_ARG: TypeArg<NetClient> |
open fun close(): Unit
Close the client. 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. |
|
open fun connect(port: Int, host: String, connectHandler: Handler<AsyncResult<NetSocket>>): NetClientopen fun connect(port: Int, host: String, serverName: String, connectHandler: Handler<AsyncResult<NetSocket>>): NetClient
Open a connection to a server at the specific open fun connect(remoteAddress: SocketAddress, connectHandler: Handler<AsyncResult<NetSocket>>): NetClientopen fun connect(remoteAddress: SocketAddress, serverName: String, connectHandler: Handler<AsyncResult<NetSocket>>): NetClient
Open a connection to a server at the specific The connect is done asynchronously and on success, a io.vertx.rxjava.core.net.NetSocket instance is supplied via the |
|
open fun equals(other: Any?): Boolean |
|
open fun getDelegate(): NetClient |
|
open fun hashCode(): Int |
|
open fun isMetricsEnabled(): Boolean
Whether the metrics are enabled for this measured object |
|
open static fun newInstance(arg: NetClient): NetClient |
|
open fun rxConnect(port: Int, host: String): Single<NetSocket>open fun rxConnect(port: Int, host: String, serverName: String): Single<NetSocket>
Open a connection to a server at the specific open fun rxConnect(remoteAddress: SocketAddress): Single<NetSocket>open fun rxConnect(remoteAddress: SocketAddress, serverName: String): Single<NetSocket>
Open a connection to a server at the specific The connect is done asynchronously and on success, a io.vertx.rxjava.core.net.NetSocket instance is supplied via the |
|
open fun toString(): String |