|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RangeTracker
Interface for tracking download ranges.
| Method Summary | |
|---|---|
long |
getBytesRead()
Accessor for the number of bytes read. |
org.littleshoot.util.Optional<org.apache.commons.lang.math.LongRange> |
getNextRange()
Gets the next range to download. |
int |
getNumChunks()
Accessor for the number of chunks to download. |
boolean |
hasMoreRanges()
Returns whether or not there are available ranges to download. |
void |
onRangeComplete(org.apache.commons.lang.math.LongRange range)
Called when we've completed downloading the specified range. |
void |
onRangeFailed(org.apache.commons.lang.math.LongRange range)
Called when the attempt to download the specified range has failed. |
| Method Detail |
|---|
org.littleshoot.util.Optional<org.apache.commons.lang.math.LongRange> getNextRange()
boolean hasMoreRanges()
true if there are more ranges to download,
otherwise false.void onRangeComplete(org.apache.commons.lang.math.LongRange range)
range - The completed range.void onRangeFailed(org.apache.commons.lang.math.LongRange range)
range - The range that could not be downloaded.int getNumChunks()
long getBytesRead()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||