| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the actual port the server is listening on.The actual port the server is listening on. |
| public Future | |
| public void | close(Handler<AsyncResult<Void>>
the handler completionHandler)Like |
| public NetServer | Returns: a reference to this, so the API can be used fluentlySupply a connect handler for this server. |
| public Handler | |
| public ReadStream | Returns: the connect stream
Deprecated
instead use
connectHandler(Handler)
Return the connect stream for this server. |
| public NetServer | Returns: a reference to this, so the API can be used fluentlythe handler to set handler)Set an exception handler called for socket errors happening before the connection
is passed to the |
| public Future | Returns: a future completed with the listen operation resultStart listening on the port and host as configured in the |
| public default NetServer | Returns: a reference to this, so the API can be used fluentlyhandler that will be notified when listening or failed listenHandler)Like |
| public default Future | Returns: a future completed with the listen operation resultStart listening on the specified port and host, ignoring port and host configured in the |
| public default NetServer | Returns: a reference to this, so the API can be used fluentlythe port to listen on port, String the host to listen on host, Handler<AsyncResult<NetServer>> handler that will be notified when listening or failed listenHandler)Like |
| public default Future | Returns: a future completed with the listen operation resultStart listening on the specified port and host "0.0.0.0", ignoring port and host configured in the
|
| public default NetServer | Returns: a reference to this, so the API can be used fluentlythe port to listen on port, Handler<AsyncResult<NetServer>> handler that will be notified when listening or failed listenHandler)Like |
| public Future | Returns: a future completed with the listen operation resultthe local address to listen on localAddress)Start listening on the specified local address, ignoring port and host configured in the |
| public default NetServer | Returns: a reference to this, so the API can be used fluentlythe local address to listen on localAddress, Handler<AsyncResult<NetServer>> handler that will be notified when listening or failed listenHandler)Like |
| public default Future | Returns: a future signaling the update successthe new SSL options options)Update the server with new SSL |
| public default void | updateSSLOptions(SSLOptions
the new SSL options options, Handler<AsyncResult<Boolean>> the update handler handler)Like |
| public Future | Returns: a future signaling the update successthe new SSL options options, boolean force the update when options are equals force)Update the server with new SSL |
| public default void | updateSSLOptions(SSLOptions
the new SSL options options, boolean force the update when options are equals force, Handler<AsyncResult<Boolean>> the update handler handler)Like |
| public void | updateTrafficShapingOptions(TrafficShapingOptions
the new traffic shaping options options)Update traffic shaping options |
| actualPort | back to summary |
|---|---|
| public int actualPort() The actual port the server is listening on. This is useful if you bound the server specifying 0 as port number signifying an ephemeral port
| |
| close | back to summary |
|---|---|
| public Future Close the server. This will close any currently open connections. The close may not complete until after this method has returned. | |
| close | back to summary |
|---|---|
| public void close(Handler<AsyncResult<Void>> completionHandler) Like
| |
| connectHandler | back to summary |
|---|---|
| public NetServer connectHandler(@Nullable Handler<NetSocket> handler) Supply a connect handler for this server. The server can only have at most one connect handler at any one time.
As the server accepts TCP or SSL connections it creates an instance of
| |
| connectHandler | back to summary |
|---|---|
public Handler
| |
| connectStream | back to summary |
|---|---|
| public ReadStream Deprecated instead use Return the connect stream for this server. The server can only have at most one handler at any one time.
As the server accepts TCP or SSL connections it creates an instance of
| |
| exceptionHandler | back to summary |
|---|---|
| public NetServer exceptionHandler(Handler<Throwable> handler) Set an exception handler called for socket errors happening before the connection
is passed to the
| |
| listen | back to summary |
|---|---|
| public Future Start listening on the port and host as configured in the The server may not be listening until some time after the call to listen has returned. | |
| listen | back to summary |
|---|---|
| public default NetServer listen(Handler<AsyncResult<NetServer>> listenHandler) Like
| |
| listen | back to summary |
|---|---|
| public default Future Start listening on the specified port and host, ignoring port and host configured in the
Port
Host The server may not be listening until some time after the call to listen has returned. | |
| listen | back to summary |
|---|---|
| public default NetServer listen(int port, String host, Handler<AsyncResult<NetServer>> listenHandler) Like | |
| listen | back to summary |
|---|---|
| public default Future Start listening on the specified port and host "0.0.0.0", ignoring port and host configured in the
Port The server may not be listening until some time after the call to listen has returned. | |
| listen | back to summary |
|---|---|
| public default NetServer listen(int port, Handler<AsyncResult<NetServer>> listenHandler) Like
| |
| listen | back to summary |
|---|---|
| public Future Start listening on the specified local address, ignoring port and host configured in the The server may not be listening until some time after the call to listen has returned.
| |
| listen | back to summary |
|---|---|
| public default NetServer listen(SocketAddress localAddress, Handler<AsyncResult<NetServer>> listenHandler) Like
| |
| updateSSLOptions | back to summary |
|---|---|
| public default Future Update the server with new SSL The boolean succeeded future result indicates whether the update occurred.
| |
| updateSSLOptions | back to summary |
|---|---|
| public default void updateSSLOptions(SSLOptions options, Handler<AsyncResult<Boolean>> handler) Like
| |
| updateSSLOptions | back to summary |
|---|---|
| public Future Update the server with new SSL The The boolean succeeded future result indicates whether the update occurred.
| |
| updateSSLOptions | back to summary |
|---|---|
| public default void updateSSLOptions(SSLOptions options, boolean force, Handler<AsyncResult<Boolean>> handler) Like
| |
| updateTrafficShapingOptions | back to summary |
|---|---|
| public void updateTrafficShapingOptions(TrafficShapingOptions options) Update traffic shaping options
| |