File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed
main/java/com/qiniu/api/rs
test/java/com/qiniu/testing Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -58,14 +58,14 @@ public class PutPolicy {
58
58
public String transform ;
59
59
60
60
/**
61
- *
62
- * 单位: 秒
63
- * 文件变换操作执行的超时时间(单位:秒),上传和转码操作是同步进行的,
64
- * 先上传后转码,这个时间只是转码所需时间,不包括上传文件所需时间。
65
- * 这个值太小可能会导致误判(最终存储成功了但客户端得到超时的错误),
66
- * 但太大可能会导致服务端将其判断为低优先级任务。建议取一个相对准确的
67
- * 时间估计值*N(N不要超过5)。
68
- *
61
+ *
62
+ * 单位: 秒
63
+ * 文件变换操作执行的超时时间(单位:秒),上传和转码操作是同步进行的,
64
+ * 先上传后转码,这个时间只是转码所需时间,不包括上传文件所需时间。
65
+ * 这个值太小可能会导致误判(最终存储成功了但客户端得到超时的错误),
66
+ * 但太大可能会导致服务端将其判断为低优先级任务。建议取一个相对准确的
67
+ * 时间估计值*N(N不要超过5)。
68
+ *
69
69
**/
70
70
public long fopTimeout ;
71
71
Original file line number Diff line number Diff line change @@ -65,9 +65,9 @@ public void testPut() throws Exception {
65
65
}
66
66
67
67
/**
68
- * 这个案例测试上传后转码并将转码结果保存为目标文件。例中使用了 PutPolicy 中的
69
- * transform 和 fopTimeout 两个参数,分别对应要进行的转码操作和转码超时时间,
70
- * 测试的时候请将例中的 localFile 改成合法的文件路径。
68
+ * 这个案例测试上传后转码并将转码结果保存为目标文件。例中使用了 PutPolicy 中的
69
+ * transform 和 fopTimeout 两个参数,分别对应要进行的转码操作和转码超时时间,
70
+ * 测试的时候请将例中的 localFile 改成合法的文件路径。
71
71
**/
72
72
public void testPutTransform () throws Exception {
73
73
PutPolicy putPolicy = new PutPolicy (bucketName );
You can’t perform that action at this time.
0 commit comments