src/main/java/reactor/netty/tcp/TcpServer.java
/**
	 * Specifies whether the metrics are enabled on the {@link TcpServer}.
	 * All generated metrics are provided to the specified recorder.
	 *
	 * @param metricsEnabled if true enables the metrics on the server.
	 * @param recorder the {@link ChannelMetricsRecorder}
	 * @return a new {@link TcpServer}
	 */
Specifies whether the metrics are enabled on the  TcpServer.
All generated metrics are provided to the specified recorder.

@param metricsEnabled if true enables the metrics on the server.
@param recorder the  ChannelMetricsRecorder
@return a new  TcpServer
Specifies whether the metrics are enabled on the TcpServer . All generated metrics are provided to the specified recorder . @param metricsEnabled if true enables the metrics on the server . @param recorder the ChannelMetricsRecorder @return a new TcpServer
public final TcpServer metrics(boolean metricsEnabled, ChannelMetricsRecorder recorder) {
		if (metricsEnabled) {
			Objects.requireNonNull(recorder, "recorder");
			return bootstrap(b -> BootstrapHandlers.updateMetricsSupport(b, recorder));
		}
		else {
			return bootstrap(BootstrapHandlers::removeMetricsSupport);
		}
	}
public final TcpServer metrics ( boolean metricsEnabled , ChannelMetricsRecorder recorder ) { if ( metricsEnabled ) { Objects . requireNonNull ( recorder , "recorder" ) ; return bootstrap ( b -> BootstrapHandlers . updateMetricsSupport ( b , recorder ) ) ; } else { return bootstrap ( BootstrapHandlers :: removeMetricsSupport ) ; } }
Specifies whether the metrics are enabled on the {@link TcpServer}.
Specifies whether the metrics are enabled on the { @link TcpServer } .