org.lastbamboo.common.download
Interface RateCalculator

All Known Implementing Classes:
RateCalculatorImpl

public interface RateCalculator

An interface to an object that helps calculate rates.


Method Summary
 void addData(RangeDownloader downloader)
          Adds data for the given downloader.
 long getBytesRead()
          Accessor for the total number of bytes read.
 double getRate()
          Returns the rate since a given time.
 

Method Detail

getRate

double getRate()
Returns the rate since a given time.

Returns:
The rate since the given time.

addData

void addData(RangeDownloader downloader)
Adds data for the given downloader.

Parameters:
downloader - The downloader to add data for.

getBytesRead

long getBytesRead()
Accessor for the total number of bytes read.

Returns:
The total number of bytes read.


Copyright © 2013 LittleShoot. All Rights Reserved.