org.lastbamboo.common.download
Interface RangeSizeSelector
- All Known Implementing Classes:
- DefaultRangeSizeSelector
public interface RangeSizeSelector
Interface for algorithms for selecting the size of ranges based on the
number of available download sources and the size of files.
|
Method Summary |
long |
selectSize(long fileSize,
int numSources)
Selects the size of ranges based on the file size and the number of
sources for the download. |
selectSize
long selectSize(long fileSize,
int numSources)
- Selects the size of ranges based on the file size and the number of
sources for the download.
- Parameters:
fileSize - The size of the file.numSources - The number of sources for the download.
- Returns:
- The size to use for each chunk.
Copyright © 2013 LittleShoot. All Rights Reserved.