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 this org.vertx.scala.core.Closeable instance asynchronously and notifies the handler once done.
Close this org.vertx.scala.core.Closeable instance asynchronously and notifies the handler once done.
Close this org.vertx.scala.core.Closeable instance asynchronously.
Close this org.vertx.scala.core.Closeable instance asynchronously.
Supply a connect handler for this server.
Supply a connect handler for this server. The server can only have at most one connect handler at any one time. As the server accepts TCP or SSL connections it creates an instance of org.vertx.scala.core.net.NetSocket and passes it to the connect handler.
a reference to this so multiple method calls can be chained together
The accept backlog
Get the key store password
Get the key store path
The receive buffer size
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 host.
Is client auth required?
Is client auth required?
The value of reuse address
Is SSL enabled?
true if TCP keep alive is enabled
true if Nagle's algorithm is disabled.
true
if pooled buffers are used
Instruct the server to listen for incoming connections on the specified port
and host
.
Instruct the server to listen for incoming connections on the specified port
and host
. host
can
be a host name or an IP address.
Tell the server to start listening on port port
and hostname or ip address given by host
.
Tell the server to start listening on port port
and hostname or ip address given by host
. Be aware this is an
async operation and the server may not bound on return of the method.
Instruct the server to listen for incoming connections on the specified port
and all available interfaces.
Tell the server to start listening on all available interfaces and port port
.
Tell the server to start listening on all available interfaces and port port
. Be aware this is an
async operation and the server may not bound on return of the method.
The actual port the server is listening on.
The actual port the server is listening on. This is useful if you bound the server specifying 0 as port number signifying an ephemeral port
Set the accept backlog
Set the accept backlog
a reference to this so multiple method calls can be chained together
Set required
to true if you want the server to request client authentication from any connecting clients.
Set required
to true if you want the server to request client authentication from any connecting clients. This
is an extra level of security in SSL, and requires clients to provide client certificates. Those certificates must be added
to the server trust store.
A reference to this, so multiple invocations 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 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
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
Represents a TCP or SSL server
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 running embedded) then and event loop will be assigned to the instance and used when any of its handlers are called.
Instances of this class are thread-safe.