Skip to content

Commit

Permalink
mvn 7.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sxci committed Apr 15, 2015
1 parent 4b4442b commit 48c6c26
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/qiniu/common/Config.java
Expand Up @@ -6,7 +6,7 @@

public final class Config {

public static final String VERSION = "7.0.1";
public static final String VERSION = "7.0.2";
/**
* 断点上传时的分块大小(默认的分块大小, 不允许改变)
*/
Expand Down
13 changes: 13 additions & 0 deletions src/main/java/com/qiniu/storage/UploadManager.java
Expand Up @@ -23,6 +23,12 @@ public UploadManager() {
this(null, null);
}

/**
* 断点上传记录。只针对 文件分块上传。
* 分块上传中,将每一块上传的记录保存下来。上传中断后可在上一次断点记录基础上上传剩余部分。
*
* @param recorder 断点记录者
*/
public UploadManager(Recorder recorder) {
this(recorder, new RecordKeyGenerator() {

Expand All @@ -33,6 +39,13 @@ public String gen(String key, File file) {
});
}

/**
* 断点上传记录。只针对 文件分块上传。
* 分块上传中,将每一块上传的记录保存下来。上传中断后可在上一次断点记录基础上上传剩余部分。
*
* @param recorder 断点记录者
* @param keyGen 生成文件的断点记录标示,根据生成的标示,可找到断点记录的内容
*/
public UploadManager(Recorder recorder, RecordKeyGenerator keyGen) {
client = new Client();
this.recorder = recorder;
Expand Down

0 comments on commit 48c6c26

Please sign in to comment.