| Package | Description |
|---|---|
| io.vertx.core |
= Vert.x Core Manual
:toc: left
At the heart of Vert.x is a set of Java APIs that we call *Vert.x Core*
https://github.com/eclipse/vert.x[Repository].
|
| io.vertx.core.net |
== Writing TCP servers and clients
Vert.x allows you to easily write non blocking TCP clients and servers.
|
| io.vertx.core.spi.metrics |
| Modifier and Type | Method and Description |
|---|---|
NetServer |
Vertx.createNetServer()
Create a TCP/SSL server using default options
|
NetServer |
Vertx.createNetServer(NetServerOptions options)
Create a TCP/SSL server using the specified options
|
| Modifier and Type | Method and Description |
|---|---|
NetServer |
NetServer.connectHandler(Handler<NetSocket> handler)
Supply a connect handler for this server.
|
NetServer |
NetServer.listen()
Start listening on the port and host as configured in the
NetServerOptions used when
creating the server. |
NetServer |
NetServer.listen(Handler<AsyncResult<NetServer>> listenHandler)
Like
listen() but providing a handler that will be notified when the server is listening, or fails. |
NetServer |
NetServer.listen(int port)
Start listening on the specified port and host "0.0.0.0", ignoring post and host configured in the
NetServerOptions used when creating the server. |
NetServer |
NetServer.listen(int port,
Handler<AsyncResult<NetServer>> listenHandler)
Like
listen(int) but providing a handler that will be notified when the server is listening, or fails. |
NetServer |
NetServer.listen(int port,
String host)
Start listening on the specified port and host, ignoring post and host configured in the
NetServerOptions used when
creating the server. |
NetServer |
NetServer.listen(int port,
String host,
Handler<AsyncResult<NetServer>> listenHandler)
Like
listen(int, String) but providing a handler that will be notified when the server is listening, or fails. |
| Modifier and Type | Method and Description |
|---|---|
NetServer |
NetServer.listen(Handler<AsyncResult<NetServer>> listenHandler)
Like
listen() but providing a handler that will be notified when the server is listening, or fails. |
NetServer |
NetServer.listen(int port,
Handler<AsyncResult<NetServer>> listenHandler)
Like
listen(int) but providing a handler that will be notified when the server is listening, or fails. |
NetServer |
NetServer.listen(int port,
String host,
Handler<AsyncResult<NetServer>> listenHandler)
Like
listen(int, String) but providing a handler that will be notified when the server is listening, or fails. |
| Modifier and Type | Method and Description |
|---|---|
TCPMetrics<?> |
VertxMetrics.createMetrics(NetServer server,
SocketAddress localAddress,
NetServerOptions options)
Provides the net server metrics SPI when a net server is created.
No specific thread and context can be expected when this method is called.
Note: this method can be called more than one time for the same
localAddress when a server is
scaled, it is the responsibility of the metrics implementation to eventually merge metrics. |
Copyright © 2016. All rights reserved.