src/main/java/reactor/netty/udp/UdpClient.java
/**
	 * Specifies whether the metrics are enabled on the {@link UdpClient}.
	 * All generated metrics are registered in the Micrometer MeterRegistry,
	 * assuming Micrometer is on the classpath.
	 * if {@code name} is {@code NULL} - {@code reactor.netty.udp.client}
	 * will be used as a name.
	 *
	 * @param metricsEnabled if true enables the metrics on the client.
	 * @return a new {@link UdpClient}
	 */
Specifies whether the metrics are enabled on the  UdpClient.
All generated metrics are registered in the Micrometer MeterRegistry,
assuming Micrometer is on the classpath.
if  name is  NULL -  reactor.netty.udp.client
will be used as a name.

@param metricsEnabled if true enables the metrics on the client.
@return a new  UdpClient
Specifies whether the metrics are enabled on the UdpClient . All generated metrics are registered in the Micrometer MeterRegistry assuming Micrometer is on the classpath . if name is NULL - reactor . netty . udp . client will be used as a name . @param metricsEnabled if true enables the metrics on the client . @return a new UdpClient
public final UdpClient metrics(boolean metricsEnabled) {
		if (metricsEnabled) {
			if (!Metrics.isInstrumentationAvailable()) {
				throw new UnsupportedOperationException(
						"To enable metrics, you must add the dependency `io.micrometer:micrometer-core`" +
								" to the class path first");
			}
			return bootstrap(b -> BootstrapHandlers.updateMetricsSupport(b, "reactor.netty.udp.client", "udp"));
		}
		else {
			return bootstrap(BootstrapHandlers::removeMetricsSupport);
		}
	}
public final UdpClient metrics ( boolean metricsEnabled ) { if ( metricsEnabled ) { if ( ! Metrics . isInstrumentationAvailable ( ) ) { throw new UnsupportedOperationException ( "To enable metrics, you must add the dependency `io.micrometer:micrometer-core`" + " to the class path first" ) ; } return bootstrap ( b -> BootstrapHandlers . updateMetricsSupport ( b , "reactor.netty.udp.client" , "udp" ) ) ; } else { return bootstrap ( BootstrapHandlers :: removeMetricsSupport ) ; } }
Specifies whether the metrics are enabled on the {@link UdpClient}.
Specifies whether the metrics are enabled on the { @link UdpClient } .