Search in sources :

Example 1 with ParallelUploader

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;
}
Also used : SliceConfig(io.github.artislong.model.SliceConfig) ParallelUploader(com.upyun.ParallelUploader)

Example 2 with 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);
}
Also used : RestManager(com.upyun.RestManager) ParallelUploader(com.upyun.ParallelUploader)

Aggregations

ParallelUploader (com.upyun.ParallelUploader)2 RestManager (com.upyun.RestManager)1 SliceConfig (io.github.artislong.model.SliceConfig)1