The thread model for the tcp metrics depends on the actual context thats created the client/server.
io.vertx.core.spi.metrics.VertxMetrics createMetrics method that created and returned
this metrics object.
| Modifier and Type | Method and Description |
|---|---|
| public default S | Returns: the socket metricthe remote address of the client remoteAddress, String the remote name of the client remoteName)Called when a client has connected, which is applicable for TCP connections. |
| public default void | disconnected(S
the socket metric socketMetric, SocketAddress the remote address of the client remoteAddress)Called when a client has disconnected, which is applicable for TCP connections. |
| connected | back to summary |
|---|---|
| public default S 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.
| |
| disconnected | back to summary |
|---|---|
| public default void disconnected(S socketMetric, SocketAddress remoteAddress) Called when a client has disconnected, which is applicable for TCP connections.
| |