Java io.vertx.core.net NetServer fields, constructors, methods, implement or subclass

Example usage for Java io.vertx.core.net NetServer fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for io.vertx.core.net NetServer.

The text is from its open source code.

Method

intactualPort()
The actual port the server is listening on.
voidclose(Handler> completionHandler)
Like #close but supplying a handler that will be notified when close is complete.
NetServerconnectHandler(@Nullable Handler handler)
Supply a connect handler for this server.
NetServerexceptionHandler(Handler handler)
Set an exception handler called for socket errors happening before the connection is passed to the #connectHandler , e.g during the TLS handshake.
NetServerlisten(Handler> listenHandler)
Like #listen but providing a handler that will be notified when the server is listening, or fails.
Futurelisten(int port)
Start listening on the specified port and host "0.0.0.0", ignoring port and host configured in the io.vertx.core.net.NetServerOptions used when creating the server.
Futurelisten(SocketAddress localAddress)
Start listening on the specified local address, ignoring port and host configured in the io.vertx.core.net.NetServerOptions used when creating the server.
Futurelisten()
Start listening on the port and host as configured in the io.vertx.core.net.NetServerOptions used when creating the server.
Futurelisten(int port, String host)
Start listening on the specified port and host, ignoring port and host configured in the io.vertx.core.net.NetServerOptions used when creating the server.
NetServerlisten(int port, Handler> listenHandler)
Like #listen(int) but providing a handler that will be notified when the server is listening, or fails.
NetServerlisten(SocketAddress localAddress, Handler> listenHandler)
Like #listen(SocketAddress) but providing a handler that will be notified when the server is listening, or fails.
NetServerlisten(int port, String host, Handler> listenHandler)
Like #listen(int,String) but providing a handler that will be notified when the server is listening, or fails.