The internal type of the Java wrapped class.
The internal type of the Java wrapped class.
The internal instance of the Java wrapped class.
The internal instance of the Java wrapped class.
Close the client.
Close the client. Any sockets which have not been closed manually will be closed here.
Attempt to open a connection to a server at the specific port
and host
.
Attempt to open a connection to a server at the specific port
and host
.
host
can be a valid host name or IP address. The connect is done asynchronously and on success, a
org.vertx.scala.core.net.NetSocket instance is supplied via the connectHandler
instance.
a reference to this so multiple method calls can be chained together
Attempt to open a connection to a server at the specific port
and host localhost
The connect is done asynchronously and on success, a
org.vertx.scala.core.net.NetSocket instance is supplied via the connectHandler
instance.
Attempt to open a connection to a server at the specific port
and host localhost
The connect is done asynchronously and on success, a
org.vertx.scala.core.net.NetSocket instance is supplied via the connectHandler
instance.
A reference to this so multiple method calls can be chained together.
Returns the connect timeout in milliseconds.
Returns the connect timeout in milliseconds.
The connect timeout in milliseconds.
Get the key store password
Get the key store path
The receive buffer size
Get the number of reconnect attempts.
Get the number of reconnect attempts.
The number of reconnect attempts.
Get the reconnect interval, in milliseconds.
Get the reconnect interval, in milliseconds.
The reconnect interval in milliseconds.
The send buffer size
the value of TCP so linger
the value of traffic class
Get trust store password
Get the trust store path
The value of reuse address
Is SSL enabled?
true if TCP keep alive is enabled
true if Nagle's algorithm is disabled.
true if this client will trust all server certificates.
true
if pooled buffers are used
Set the connect timeout in milliseconds.
Set the connect timeout in milliseconds.
a reference to this so multiple method calls can be chained together
Set the password for the SSL key store.
Set the password for the SSL key store. This method should only be used in SSL mode, i.e. after
org.vertx.scala.core.SSLSupport.setSSL(boolean) has been set to true
.
A reference to this, so multiple invocations can be chained together.
Set the path to the SSL key store.
Set the path to the SSL key store. This method should only be used in SSL
mode, i.e. after org.vertx.scala.core.SSLSupport.setSSL(boolean) has been set to true
.
The SSL key store is a standard Java Key Store, and will contain the client certificate. Client certificates are only required if the server requests client authentication.
A reference to this, so multiple invocations can be chained together.
Set the receive buffer size for connections created by this instance to size
in bytes.
Set the receive buffer size for connections created by this instance to size
in bytes.
a reference to this so multiple method calls can be chained together
Set the number of reconnection attempts.
Set the number of reconnection attempts. In the event a connection attempt fails, the client will attempt to connect a further number of times, before it fails. Default value is zero.
Set the reconnect interval, in milliseconds.
Set the reuseAddress setting for connections created by this instance to reuse
.
Set the reuseAddress setting for connections created by this instance to reuse
.
a reference to this so multiple method calls can be chained together
If ssl
is true
, this signifies that any connections will be SSL connections.
If ssl
is true
, this signifies that any connections will be SSL connections.
A reference to this, so multiple invocations can be chained together.
Set the send buffer size for connections created by this instance to size
in bytes.
Set the send buffer size for connections created by this instance to size
in bytes.
a reference to this so multiple method calls can be chained together
Set the TCP soLinger setting for connections created by this instance to linger
.
Set the TCP soLinger setting for connections created by this instance to linger
.
Using a negative value will disable soLinger.
a reference to this so multiple method calls can be chained together
Set the TCP keepAlive setting for connections created by this instance to keepAlive
.
Set the TCP keepAlive setting for connections created by this instance to keepAlive
.
a reference to this so multiple method calls can be chained together
If tcpNoDelay
is set to true
then Nagle's algorithm
will turned off for the TCP connections created by this instance.
If tcpNoDelay
is set to true
then Nagle's algorithm
will turned off for the TCP connections created by this instance.
a reference to this so multiple method calls can be chained together
Set the trafficClass setting for connections created by this instance to trafficClass
.
Set the trafficClass setting for connections created by this instance to trafficClass
.
a reference to this so multiple method calls can be chained together
If you want an SSL client to trust *all* server certificates rather than match them against those in its trust store, you can set this to true.
If you want an SSL client to trust *all* server certificates rather than match them against those in its trust store, you can set this to true.
Use this with caution as you may be exposed to "main in the middle" attacks
Set to true if you want to trust all server certificates
Set the password for the SSL trust store.
Set the password for the SSL trust store. This method should only be used in SSL mode, i.e. after
org.vertx.scala.core.SSLSupport.setSSL(boolean) has been set to true
.
A reference to this, so multiple invocations can be chained together.
Set the path to the SSL trust store.
Set the path to the SSL trust store. This method should only be used in SSL mode, i.e. after
org.vertx.scala.core.SSLSupport.setSSL(boolean) has been set to true
.
The trust store is a standard Java Key Store, and should contain the certificates of any servers that the client trusts.
A reference to this, so multiple invocations can be chained together.
Set if vertx should use pooled buffers for performance reasons.
Set if vertx should use pooled buffers for performance reasons. Doing so will give the best throughput but may need a bit higher memory footprint.
a reference to this so multiple method calls can be chained together
Helper method wrapping invocations and returning the Scala type, once again to help provide fluent return types
Helper method wrapping invocations and returning the Scala type, once again to help provide fluent return types
A TCP/SSL 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.
If an instance is instantiated from an event loop then the handlers of the instance will always be called on that same event loop. If an instance is instantiated from some other arbitrary Java thread (i.e. when using embedded) then an event loop will be assigned to the instance and used when any of its handlers are called.
Instances of this class are thread-safe.