Interface DatagramSocketMetrics
- All Superinterfaces:
Metrics, NetworkMetrics<Void>
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 theVertxMetrics 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
-
Field Summary
Fields inherited from interface Metrics
METRICS_ENABLED -
Method Summary
Modifier and TypeMethodDescriptiondefault voidlistening(String localName, SocketAddress localAddress) Called when a socket is listening.Methods inherited from interface NetworkMetrics
bytesRead, bytesWritten, exceptionOccurred
-
Method Details
-
listening
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:
localName-localAddress- the local address the net socket is listening on.
-