1111public final class Configuration {
1212
1313 /**
14- * 断点上传时的分块大小(默认的分块大小, 不建议改变)
14+ * 上传区域
1515 */
16- public static final int BLOCK_SIZE = 4 * 1024 * 1024 ;
17-
18- public final Recorder recorder ;
19- public final KeyGenerator keyGen ;
16+ public final Zone zone ;
2017
21- public final ProxyConfiguration proxy ;
18+ /**
19+ * 断点上传时的分块大小(默认的分块大小, 不建议改变) 【已无效】
20+ */
21+ public static final int BLOCK_SIZE = 4 * 1024 * 1024 ;
2222
2323 /**
2424 * 断点上传时的分片大小(可根据网络情况适当调整)
@@ -30,6 +30,16 @@ public final class Configuration {
3030 */
3131 public final int putThreshold ;
3232
33+ /**
34+ * 上传失败重试次数 默认1次
35+ */
36+ public final int retryMax ;
37+
38+ /**
39+ * 重试时间间隔 单位:毫秒 默认500
40+ */
41+ public final int retryInterval ;
42+
3343 /**
3444 * 连接超时时间,单位 秒
3545 */
@@ -41,45 +51,44 @@ public final class Configuration {
4151 public final int responseTimeout ;
4252
4353 /**
44- * 上传失败重试次数 默认1次
54+ * 使用https域名
4555 */
46- public final int retryMax ;
56+ public final boolean useHttps ;
4757
4858 /**
49- * 重试时间间隔 单位:毫秒 默认500
59+ * 是否使用并发上传 默认为false
5060 */
51- public final int retryInterval ;
61+ public final boolean useConcurrentResumeUpload ;
5262
5363 /**
54- * 重试时是否允许使用备用上传域名,默认为true
64+ * 并发分片上传的并发任务个数,在concurrentResumeUpload为YES时有效,默认为3个
5565 */
56- public final boolean allowBackupHost ;
66+ public final int concurrentTaskCount ;
5767
5868 /**
59- * 特别定制的url转换
69+ * 重试时是否允许使用备用上传域名,默认为true
6070 */
61- public final UrlConverter urlConverter ;
62-
71+ public final boolean allowBackupHost ;
6372
6473 /**
65- * 上传区域
74+ * 持久化记录接口,可以实现将记录持久化到文件,数据库等
6675 */
67- public final Zone zone ;
76+ public final Recorder recorder ;
6877
6978 /**
70- * 使用https域名
79+ * 为持久化上传记录,根据上传的key以及文件名 生成持久化的记录key
7180 */
72- public final boolean useHttps ;
81+ public final KeyGenerator keyGen ;
7382
7483 /**
75- * 是否使用并发上传 默认为false
84+ * 上传请求代理配置信息
7685 */
77- public final boolean useConcurrentResumeUpload ;
86+ public final ProxyConfiguration proxy ;
7887
7988 /**
80- * 并发分片上传的并发任务个数,在concurrentResumeUpload为YES时有效,默认为3个
89+ * 特别定制的url转换
8190 */
82- public final int concurrentTaskCount ;
91+ public final UrlConverter urlConverter ;
8392
8493
8594 private Configuration (Builder builder ) {
0 commit comments