Class VertxUdpMetrics

  • All Implemented Interfaces:
    io.vertx.core.spi.metrics.DatagramSocketMetrics, io.vertx.core.spi.metrics.Metrics, io.vertx.core.spi.metrics.NetworkMetrics<Void>

    public class VertxUdpMetrics
    extends Object
    implements io.vertx.core.spi.metrics.DatagramSocketMetrics
    • Field Summary

      • Fields inherited from interface io.vertx.core.spi.metrics.Metrics

        DISABLE_METRICS_PROPERTY_NAME, METRICS_ENABLED
    • Constructor Summary

      Constructors 
      Constructor Description
      VertxUdpMetrics​(io.micrometer.core.instrument.MeterRegistry registry, String prefix, io.micrometer.core.instrument.Tags tags)  
    • Constructor Detail

      • VertxUdpMetrics

        public VertxUdpMetrics​(io.micrometer.core.instrument.MeterRegistry registry,
                               String prefix,
                               io.micrometer.core.instrument.Tags tags)
    • Method Detail

      • listening

        public void listening​(String localName,
                              io.vertx.core.net.SocketAddress localAddress)
        Specified by:
        listening in interface io.vertx.core.spi.metrics.DatagramSocketMetrics
      • bytesRead

        public void bytesRead​(Void socketMetric,
                              io.vertx.core.net.SocketAddress remoteAddress,
                              long numberOfBytes)
        Specified by:
        bytesRead in interface io.vertx.core.spi.metrics.NetworkMetrics<Void>
      • bytesWritten

        public void bytesWritten​(Void socketMetric,
                                 io.vertx.core.net.SocketAddress remoteAddress,
                                 long numberOfBytes)
        Specified by:
        bytesWritten in interface io.vertx.core.spi.metrics.NetworkMetrics<Void>
      • exceptionOccurred

        public void exceptionOccurred​(Void socketMetric,
                                      io.vertx.core.net.SocketAddress remoteAddress,
                                      Throwable t)
        Specified by:
        exceptionOccurred in interface io.vertx.core.spi.metrics.NetworkMetrics<Void>