com.arangodb.shaded.vertx.core.spi.metrics.DatagramSocketMetrics Maven / Gradle / Ivy
/*
* Copyright (c) 2011-2019 Contributors to the Eclipse Foundation
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
* which is available at https://www.apache.org/licenses/LICENSE-2.0.
*
* SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
*/
package com.arangodb.shaded.vertx.core.spi.metrics;
import com.arangodb.shaded.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
* {@link com.arangodb.shaded.vertx.core.spi.metrics.VertxMetrics} {@code 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
*/
public interface DatagramSocketMetrics extends NetworkMetrics {
/**
* 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.
*
* @param localName
* @param localAddress the local address the net socket is listening on.
*/
default void listening(String localName, SocketAddress localAddress) {
}
}