Modifier and Type | Field and Description |
---|---|
static 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.
|
void |
close()
Like
close(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>) but supplying a handler that will be notified when close is complete. |
void |
close(Handler<AsyncResult<Void>> completionHandler)
Like
close(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>) 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
|
NetServer |
listen()
Like
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. |
NetServer |
listen(Handler<AsyncResult<NetServer>> listenHandler)
Like
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. |
NetServer |
listen(int port)
Like
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. |
NetServer |
listen(int port,
Handler<AsyncResult<NetServer>> listenHandler)
Like
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. |
NetServer |
listen(int port,
String host)
Like
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. |
NetServer |
listen(int port,
String host,
Handler<AsyncResult<NetServer>> listenHandler)
Like
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. |
NetServer |
listen(SocketAddress localAddress)
Like
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. |
NetServer |
listen(SocketAddress localAddress,
Handler<AsyncResult<NetServer>> listenHandler)
Like
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. |
static NetServer |
newInstance(NetServer arg) |
io.reactivex.Completable |
rxClose()
Like
close(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>) but supplying a handler that will be notified when close is complete. |
io.reactivex.Single<NetServer> |
rxListen()
Like
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. |
io.reactivex.Single<NetServer> |
rxListen(int port)
Like
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. |
io.reactivex.Single<NetServer> |
rxListen(int port,
String host)
Like
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. |
io.reactivex.Single<NetServer> |
rxListen(SocketAddress localAddress)
Like
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. |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
newInstance
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 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 io.reactivex.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 io.reactivex.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 io.reactivex.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 io.reactivex.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 io.reactivex.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()
Copyright © 2020 Eclipse. All rights reserved.