Repository: micronaut-projects/micronaut-core
File: http-client-core/src/main/java/io/micronaut/http/client/HttpClientConfiguration.java (Java)

Code before:
     * @return The bean name of the resolver group
     * @since 4.6.0
     */
    public @Nullable String getAddressResolverGroupName() {
        return addressResolverGroupName;
    }

    /**
     * Name of a fixed netty AddressResolverGroup to use for this client, or {@code null} to
     * instead use {@link #getDnsResolutionMode()}. This option is specific to the netty client.
     *
     * @param addressResolverGroupName The bean name of the resolver group
     * @since 4.6.0
     */
    public void setAddressResolverGroupName(@Nullable String addressResolverGroupName) {
        this.addressResolverGroupName = addressResolverGroupName;
    }

    /**
     * For HTTP/2 connections, the interval from the last inbound message to when an automated ping
     * should be sent. This can be used to keep low-traffic connections alive.
     *
     * @return The timeout when to send a ping frame
     */
    @Nullable
    public Duration getHttp2PingIntervalRead() {
        return http2PingIntervalRead;
    }

    /**
     * For HTTP/2 connections, the interval from the last inbound message to when an automated ping
     * should be sent. This can be used to keep low-traffic connections alive.
     *
     * @param http2PingIntervalRead The timeout when to send a ping frame
     */
    public void setHttp2PingIntervalRead(@Nullable Duration http2PingIntervalRead) {
        this.http2PingIntervalRead = http2PingIntervalRead;
    }

    /**
     * For HTTP/2 connections, the interval from the last outbound message to when an automated ping
     * should be sent. This can be used to keep low-traffic connections alive.
     *
     * @return The timeout when to send a ping frame
     */
    @Nullable
    public Duration getHttp2PingIntervalWrite() {
        return http2PingIntervalWrite;
    }

    /**

Review comment (refactor):
Would it make sense to extract those into some http2 config? The property would be `http2.pingIntervalRead`

Code after:
        return addressResolverGroupName;
    }

    /**
     * Name of a fixed netty AddressResolverGroup to use for this client, or {@code null} to
     * instead use {@link #getDnsResolutionMode()}. This option is specific to the netty client.
     *
     * @param addressResolverGroupName The bean name of the resolver group
     * @since 4.6.0
     */
    public void setAddressResolverGroupName(@Nullable String addressResolverGroupName) {
        this.addressResolverGroupName = addressResolverGroupName;
    }

    /**
     * Obtains the HTTP/2 configuration.
     *
     * @return The HTTP/2 configuration.
     * @since 4.6.0
     */
    @Nullable
    public HttpClientConfiguration.Http2ClientConfiguration getHttp2Configuration() {
        return null;
    }

    /**
     * Configuration for the HTTP client connnection pool.
     */
    public static class ConnectionPoolConfiguration implements Toggleable {
        /**
         * The prefix to use for configuration.
         */
        public static final String PREFIX = "pool";

        /**
         * The default enable value.
         */
        @SuppressWarnings("WeakerAccess")
        public static final boolean DEFAULT_ENABLED = true;

        private int maxPendingConnections = 4;

        private int maxConcurrentRequestsPerHttp2Connection = Integer.MAX_VALUE;
        private int maxConcurrentHttp1Connections = Integer.MAX_VALUE;
        private int maxConcurrentHttp2Connections = 1;

        private int maxPendingAcquires = Integer.MAX_VALUE;

        private Duration acquireTimeout;

        private boolean enabled = DEFAULT_ENABLED;