Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<NetServer> |
__TYPE_ARG |
Constructor and Description |
---|
NetServer(NetServer delegate) |
NetServer(Object delegate) |
Modifier and Type | Method and Description |
---|---|
int |
actualPort()
The actual port the server is listening on.
|
Completable |
close()
Like
close() but supplying a handler that will be notified when close is complete. |
NetServer |
connectHandler(Handler<NetSocket> handler)
Supply a connect handler for this server.
|
ReadStream<NetSocket> |
connectStream()
Deprecated.
|
boolean |
equals(Object o) |
NetServer |
getDelegate() |
int |
hashCode() |
boolean |
isMetricsEnabled()
Whether the metrics are enabled for this measured object
|
Single<NetServer> |
listen()
Like
listen() but providing a handler that will be notified when the server is listening, or fails. |
Single<NetServer> |
listen(int port)
Like
listen() but providing a handler that will be notified when the server is listening, or fails. |
Single<NetServer> |
listen(int port,
String host)
Like
listen() but providing a handler that will be notified when the server is listening, or fails. |
Single<NetServer> |
listen(SocketAddress localAddress)
Like
listen() but providing a handler that will be notified when the server is listening, or fails. |
static NetServer |
newInstance(NetServer arg) |
Completable |
rxClose()
Like
close() but supplying a handler that will be notified when close is complete. |
Single<NetServer> |
rxListen()
Like
listen() but providing a handler that will be notified when the server is listening, or fails. |
Single<NetServer> |
rxListen(int port)
Like
listen() but providing a handler that will be notified when the server is listening, or fails. |
Single<NetServer> |
rxListen(int port,
String host)
Like
listen() but providing a handler that will be notified when the server is listening, or fails. |
Single<NetServer> |
rxListen(SocketAddress localAddress)
Like
listen() but providing a handler that will be notified when the server is listening, or fails. |
Completable |
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). |
String |
toString() |
Completable |
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). |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
newInstance
public static final io.vertx.lang.rx.TypeArg<NetServer> __TYPE_ARG
public NetServer(NetServer delegate)
public NetServer(Object delegate)
public NetServer getDelegate()
getDelegate
in interface Measured
public boolean isMetricsEnabled()
isMetricsEnabled
in interface Measured
true
if metrics are enabled@Deprecated public ReadStream<NetSocket> connectStream()
NetSocket
and passes it to the
connect stream .public NetServer connectHandler(Handler<NetSocket> handler)
NetSocket
and passes it to the
connect handler.handler
- public Single<NetServer> listen()
listen()
but providing a handler that will be notified when the server is listening, or fails.public Single<NetServer> rxListen()
listen()
but providing a handler that will be notified when the server is listening, or fails.public Single<NetServer> listen(int port, String host)
listen()
but providing a handler that will be notified when the server is listening, or fails.port
- the port to listen onhost
- the host to listen onpublic Single<NetServer> rxListen(int port, String host)
listen()
but providing a handler that will be notified when the server is listening, or fails.port
- the port to listen onhost
- the host to listen onpublic Single<NetServer> listen(int port)
listen()
but providing a handler that will be notified when the server is listening, or fails.port
- the port to listen onpublic Single<NetServer> rxListen(int port)
listen()
but providing a handler that will be notified when the server is listening, or fails.port
- the port to listen onpublic Single<NetServer> listen(SocketAddress localAddress)
listen()
but providing a handler that will be notified when the server is listening, or fails.localAddress
- the local address to listen onpublic Single<NetServer> rxListen(SocketAddress localAddress)
listen()
but providing a handler that will be notified when the server is listening, or fails.localAddress
- the local address to listen onpublic Completable close()
close()
but supplying a handler that will be notified when close is complete.public Completable rxClose()
close()
but supplying a handler that will be notified when close is complete.public int actualPort()
public Completable 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 Completable 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 optionsCopyright © 2024 Eclipse. All rights reserved.