public class VertxTcpMetrics extends VertxNetworkMetrics implements io.vertx.core.spi.metrics.TCPMetrics<Map<String,Object>>
| Modifier and Type | Field and Description |
|---|---|
(package private) String |
nameConnections |
nameBytesRead, nameBytesWritten, nameExceptionOccurred, registry| Constructor and Description |
|---|
VertxTcpMetrics(io.micrometer.core.instrument.MeterRegistry registry,
String prefix) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
connected(io.vertx.core.net.SocketAddress remoteAddress,
String remoteName)
Called when a client has connected, which is applicable for TCP connections.
|
void |
disconnected(Map<String,Object> socketMetric,
io.vertx.core.net.SocketAddress remoteAddress)
Called when a client has disconnected, which is applicable for TCP
connections.
|
bytesRead, bytesWritten, exceptionOccurredclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfinal String nameConnections
VertxTcpMetrics(io.micrometer.core.instrument.MeterRegistry registry,
String prefix)
public Map<String,Object> connected(io.vertx.core.net.SocketAddress remoteAddress, String remoteName)
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.
Copyright © 2021 JBoss by Red Hat. All rights reserved.