Top Description Methods
io.vertx.core.spi.metrics

public Interface DatagramSocketMetrics

extends NetworkMetrics<Void>
Known Direct Implementers
io.vertx.core.metrics.impl.DummyVertxMetrics.DummyDatagramMetrics
Imports
io.vertx.core.net.SocketAddress

The datagram/udp metrics SPI which Vert.x will use to call when each event occurs pertaining to datagram sockets.

The thread model for the datagram socket depends on the actual context thats started the server.

Event loop context

Unless specified otherwise, all the methods on this object including the methods inherited from the super interfaces are invoked with the thread of the http server and therefore are the same than the io.vertx.core.spi.metrics.VertxMetrics createMetrics method that created and returned this metrics object.

Worker context

Unless specified otherwise, all the methods on this object including the methods inherited from the super interfaces are invoked with a worker thread.
Author
Nick Scavelli

Method Summary

Modifier and TypeMethod and Description
public default void
listening(String localName, SocketAddress
the local address the net socket is listening on.
localAddress
)

Called when a socket is listening.

Inherited from io.vertx.core.spi.metrics.NetworkMetrics:
bytesReadbytesWrittenexceptionOccurred

Method Detail

listeningback to summary
public default void listening(String localName, SocketAddress localAddress)

Called when a socket is listening. For example, this is called when an http or net server has been created and is listening on a specific host/port.

Parameters
localAddress:SocketAddress

the local address the net socket is listening on.