use of com.upyun.ParallelUploader in project oss-spring-boot-starter by ArtIsLong.
the class UpOssConfiguration method parallelUploader.
public ParallelUploader parallelUploader(UpOssConfig upOssConfig) {
ParallelUploader parallelUploader = new ParallelUploader(upOssConfig.getBucketName(), upOssConfig.getUserName(), upOssConfig.getPassword());
SliceConfig sliceConfig = upOssConfig.getSliceConfig();
parallelUploader.setParallel(sliceConfig.getTaskNum());
parallelUploader.setCheckMD5(true);
return parallelUploader;
}
use of com.upyun.ParallelUploader in project oss-spring-boot-starter by ArtIsLong.
the class UpOssConfiguration method upOssClient.
private StandardOssClient upOssClient(UpOssConfig upOssConfig) {
RestManager restManager = restManager(upOssConfig);
ParallelUploader parallelUploader = parallelUploader(upOssConfig);
return upOssClient(restManager, parallelUploader, upOssConfig);
}
Aggregations