|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface outlines the functionality that any class wanting to track bandwidth must implement. Typically a timer periodically calls measureBandwidth, leaving other threads free to call getMeasuredBandwidth.
Method Summary | |
float |
getAverageBandwidth()
Returns the overall averaged bandwidth between all calls of measureBandwidth |
float |
getMeasuredBandwidth()
Returns the throughput of this in kilobytes/sec (KB/s) between the last two calls to measureBandwidth, or 0.0 if unknown. |
void |
measureBandwidth()
Measures the data throughput since the last call to measureBandwidth. |
Method Detail |
public void measureBandwidth()
public float getMeasuredBandwidth() throws InsufficientDataException
InsufficientDataException
public float getAverageBandwidth()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |