Skip to content

filedownloader.properties

Jacksgong edited this page Apr 19, 2016 · 8 revisions

If you want to use this property and don't find 'filedownloader.properties' on the root path of your project, please create a new empty file with naming 'filedownloader.properties' on there feel free.

Format: keyword=value.

Maybe in the code format would be more readable.

keyword description default
http.lenient if you occur exception: 'can't know the size of the download file, and its Transfer-Encoding is not Chunked either', but you want to ignore such exception, set true, will deal with it as the case of transfer encoding chunk. false
process.non-separate The FileDownloadService runs in the separate process ':filedownloader' as default, if you want to run the FileDownloadService in the main process, just set true. false
download.min-progress-step The min buffered so far bytes. Used for adjudging whether is time to sync the downloaded so far bytes to database and make sure. More small more frequent, then download more slowly, but will safer in the scene of the process is killed unexpectedly. 65536
download.min-progress-time The min buffered millisecond.Used for adjudging whether is time to sync the downloaded so far bytes to database and make sure. More small more frequent, then download more slowly, but will safer in the scene of the process is killed unexpectedly. 2000
download.max-network-thread-count The maximum network thread count for downloading simultaneously, scope [1,12] 3

Clone this wiki locally