Class VertxTcpMetrics
- java.lang.Object
-
- io.quarkus.micrometer.runtime.binder.vertx.VertxNetworkMetrics
-
- io.quarkus.micrometer.runtime.binder.vertx.VertxTcpMetrics
-
- All Implemented Interfaces:
io.vertx.core.spi.metrics.Metrics,io.vertx.core.spi.metrics.NetworkMetrics<Map<String,Object>>,io.vertx.core.spi.metrics.TCPMetrics<Map<String,Object>>
- Direct Known Subclasses:
VertxHttpServerMetrics
public class VertxTcpMetrics extends VertxNetworkMetrics implements io.vertx.core.spi.metrics.TCPMetrics<Map<String,Object>>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) StringnameConnections-
Fields inherited from class io.quarkus.micrometer.runtime.binder.vertx.VertxNetworkMetrics
nameBytesRead, nameBytesWritten, nameExceptionOccurred, registry
-
-
Constructor Summary
Constructors Constructor Description VertxTcpMetrics(io.micrometer.core.instrument.MeterRegistry registry, String prefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.voiddisconnected(Map<String,Object> socketMetric, io.vertx.core.net.SocketAddress remoteAddress)Called when a client has disconnected, which is applicable for TCP connections.-
Methods inherited from class io.quarkus.micrometer.runtime.binder.vertx.VertxNetworkMetrics
bytesRead, bytesWritten, exceptionOccurred
-
-
-
-
Field Detail
-
nameConnections
final String nameConnections
-
-
Constructor Detail
-
VertxTcpMetrics
VertxTcpMetrics(io.micrometer.core.instrument.MeterRegistry registry, String prefix)
-
-
Method Detail
-
connected
public Map<String,Object> connected(io.vertx.core.net.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.
-
-