class NettyHttpServiceClient implements ServiceClient {

    @Override
    public ServiceClient setConnectionLimitPerTag(String tag, int limit) {
        this.channelPool.setConnectionLimitPerTag(tag, limit);
        if (this.sslChannelPool != null) {
            this.sslChannelPool.setConnectionLimitPerTag(tag, limit);
        }
        if (this.http2ChannelPool != null) {
            this.http2ChannelPool.setConnectionLimitPerTag(tag, limit);
        }
        if (this.http2SslChannelPool != null) {
            this.http2SslChannelPool.setConnectionLimitPerTag(tag, limit);
        }
        return this;
    }

}