Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<NetServer> |
__TYPE_ARG |
Constructor and Description |
---|
NetServer(NetServer delegate) |
NetServer(Object delegate) |
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 NetServer listen(Handler<AsyncResult<NetServer>> listenHandler)
listen(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.reactivex.core.net.NetServer>>)
but providing a handler that will be notified when the server is listening, or fails.listenHandler
- handler that will be notified when listening or failedpublic NetServer listen()
listen(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.reactivex.core.net.NetServer>>)
but providing a handler that will be notified when the server is listening, or fails.public Single<NetServer> rxListen()
listen(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.reactivex.core.net.NetServer>>)
but providing a handler that will be notified when the server is listening, or fails.public NetServer listen(int port, String host, Handler<AsyncResult<NetServer>> listenHandler)
listen(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.reactivex.core.net.NetServer>>)
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 onlistenHandler
- handler that will be notified when listening or failedpublic NetServer listen(int port, String host)
listen(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.reactivex.core.net.NetServer>>)
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(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.reactivex.core.net.NetServer>>)
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 NetServer listen(int port, Handler<AsyncResult<NetServer>> listenHandler)
listen(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.reactivex.core.net.NetServer>>)
but providing a handler that will be notified when the server is listening, or fails.port
- the port to listen onlistenHandler
- handler that will be notified when listening or failedpublic NetServer listen(int port)
listen(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.reactivex.core.net.NetServer>>)
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(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.reactivex.core.net.NetServer>>)
but providing a handler that will be notified when the server is listening, or fails.port
- the port to listen onpublic NetServer listen(SocketAddress localAddress, Handler<AsyncResult<NetServer>> listenHandler)
listen(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.reactivex.core.net.NetServer>>)
but providing a handler that will be notified when the server is listening, or fails.localAddress
- the local address to listen onlistenHandler
- handler that will be notified when listening or failedpublic NetServer listen(SocketAddress localAddress)
listen(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.reactivex.core.net.NetServer>>)
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(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.reactivex.core.net.NetServer>>)
but providing a handler that will be notified when the server is listening, or fails.localAddress
- the local address to listen onpublic void close(Handler<AsyncResult<Void>> completionHandler)
close(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>)
but supplying a handler that will be notified when close is complete.completionHandler
- the handlerpublic void close()
close(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>)
but supplying a handler that will be notified when close is complete.public Completable rxClose()
close(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>)
but supplying a handler that will be notified when close is complete.public int actualPort()
public void updateSSLOptions(SSLOptions options, Handler<AsyncResult<Boolean>> handler)
updateSSLOptions(io.vertx.core.net.SSLOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Boolean>>)
but supplying a handler that will be called when the update
happened (or has failed).options
- the new SSL optionshandler
- the update handlerpublic void updateSSLOptions(SSLOptions options)
updateSSLOptions(io.vertx.core.net.SSLOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Boolean>>)
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, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Boolean>>)
but supplying a handler that will be called when the update
happened (or has failed).options
- the new SSL optionspublic void updateSSLOptions(SSLOptions options, boolean force, Handler<AsyncResult<Boolean>> handler)
updateSSLOptions(io.vertx.core.net.SSLOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Boolean>>)
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 equalshandler
- the update handlerpublic void updateSSLOptions(SSLOptions options, boolean force)
updateSSLOptions(io.vertx.core.net.SSLOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Boolean>>)
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, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Boolean>>)
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.