Package | Description |
---|---|
io.vertx.core.datagram |
== Datagram sockets (UDP)
Using User Datagram Protocol (UDP) with Vert.x is a piece of cake.
|
io.vertx.core.http |
== Writing HTTP servers and clients
Vert.x allows you to easily write non blocking HTTP clients and servers.
|
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 |
---|---|
SocketAddress |
DatagramSocket.localAddress()
Return the
SocketAddress to which
this DatagramSocket is bound. |
SocketAddress |
DatagramPacket.sender()
Returns the
SocketAddress of the sender that sent
this DatagramPacket . |
Modifier and Type | Method and Description |
---|---|
SocketAddress |
HttpServerRequest.localAddress() |
SocketAddress |
HttpConnection.localAddress() |
SocketAddress |
WebSocketBase.localAddress() |
SocketAddress |
HttpServerRequest.remoteAddress() |
SocketAddress |
HttpConnection.remoteAddress() |
SocketAddress |
WebSocketBase.remoteAddress() |
Modifier and Type | Method and Description |
---|---|
SocketAddress |
NetSocket.localAddress() |
SocketAddress |
NetSocket.remoteAddress() |
Modifier and Type | Method and Description |
---|---|
void |
NetworkMetrics.bytesRead(S socketMetric,
SocketAddress remoteAddress,
long numberOfBytes)
Called when bytes have been read
|
void |
NetworkMetrics.bytesWritten(S socketMetric,
SocketAddress remoteAddress,
long numberOfBytes)
Called when bytes have been written
|
S |
TCPMetrics.connected(SocketAddress remoteAddress,
String remoteName)
Called when a client has connected, which is applicable for TCP connections.
The remote name of the client is a best effort to provide the name of the remote host, i.e if the name
is specified at creation time, this name will be used otherwise it will be the remote address.
|
HttpServerMetrics<?,?,?> |
VertxMetrics.createMetrics(HttpServer server,
SocketAddress localAddress,
HttpServerOptions options)
Provides the http server metrics SPI when an http server is created.
|
TCPMetrics<?> |
VertxMetrics.createMetrics(SocketAddress localAddress,
NetServerOptions options)
Provides the net server metrics SPI when a net server is created.
|
void |
TCPMetrics.disconnected(S socketMetric,
SocketAddress remoteAddress)
Called when a client has disconnected, which is applicable for TCP connections.
|
void |
NetworkMetrics.exceptionOccurred(S socketMetric,
SocketAddress remoteAddress,
Throwable t)
Called when exceptions occur for a specific connection.
|
void |
DatagramSocketMetrics.listening(String localName,
SocketAddress localAddress)
Called when a socket is listening.
|
R |
HttpClientMetrics.requestBegin(E endpointMetric,
S socketMetric,
SocketAddress localAddress,
SocketAddress remoteAddress,
HttpClientRequest request)
Called when an http client request begins.
|
R |
HttpClientMetrics.responsePushed(E endpointMetric,
S socketMetric,
SocketAddress localAddress,
SocketAddress remoteAddress,
HttpClientRequest request)
Called when an http client response is pushed.
|
Copyright © 2017. All rights reserved.