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()
Return the connect stream for this server.
|
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. |
String |
toString() |
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 enabledpublic 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()
Copyright © 2023 Eclipse. All rights reserved.