private static QuotaSettings throttle(final String userName, final TableName tableName,
    final String namespace, final String regionServer, final ThrottleType type, final long limit,
    final TimeUnit timeUnit, QuotaScope scope) {
    QuotaProtos.ThrottleRequest.Builder builder = QuotaProtos.ThrottleRequest.newBuilder();
    if (type != null) {
      builder.setType(ProtobufUtil.toProtoThrottleType(type));
    }
    if (timeUnit != null) {
      builder.setTimedQuota(ProtobufUtil.toTimedQuota(limit, timeUnit, scope));
    }
    return new ThrottleSettings(userName, tableName, namespace, regionServer, builder.build());
  }
Remove the throttling for the specified region server by throttle type.
@param regionServer the region Server
@param type         the type of throttling
@return the quota settings
hbase-client/src/main/java/org/apache/hadoop/hbase/quotas/QuotaSettingsFactory.java