|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BandwidthTracker
Defines the interface for any class wanting to track
bandwidth. 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 |
|---|
void measureBandwidth()
measureBandwidth.
This value can be read by calling getMeasuredBandwidth.
float getMeasuredBandwidth()
throws InsufficientDataException
measureBandwidth, or 0.0 if unknown.
InsufficientDataExceptionfloat getAverageBandwidth()
measureBandwidth.
|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||