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. |
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). |
void |
updateTrafficShapingOptions(TrafficShapingOptions options)
Update traffic shaping options
options , the update happens if valid values are passed for traffic
shaping options. |
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 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 equalspublic void updateTrafficShapingOptions(TrafficShapingOptions options)
options
, the update happens if valid values are passed for traffic
shaping options. This update happens synchronously and at best effort for rate update to take effect immediately.options
- the new traffic shaping optionsCopyright © 2024 Eclipse. All rights reserved.