|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SpeedManagerAlgorithmProvider
Field Summary | |
---|---|
static int |
UPDATE_PERIOD_MILLIS
|
Method Summary | |
---|---|
void |
calculate(SpeedManagerPingSource[] sources)
Called whenever a new set of ping values is available for processing |
void |
destroy()
|
boolean |
getAdjustsDownloadLimits()
Indicates whether or not the provider is adjusting download as well as upload limits |
int |
getCurrentChokeSpeed()
Returns the current view of when choking occurs |
int |
getCurrentPingMillis()
|
int |
getIdlePingMillis()
Various getters for interesting info shown in stats view |
int |
getMaxPingMillis()
|
int |
getMaxUploadSpeed()
|
void |
pingSourceFailed(SpeedManagerPingSource source)
Ping source has failed |
void |
pingSourceFound(SpeedManagerPingSource source,
boolean is_replacement)
Called when a new source of ping times has been found |
void |
reset()
Reset any state to start of day values |
void |
updateStats()
Called periodically (see period above) to allow stats to be updated. |
Field Detail |
---|
static final int UPDATE_PERIOD_MILLIS
Method Detail |
---|
void reset()
void updateStats()
void pingSourceFound(SpeedManagerPingSource source, boolean is_replacement)
source
- is_replacement
- One of the initial sources or a replacement for a failed onevoid pingSourceFailed(SpeedManagerPingSource source)
source
- void calculate(SpeedManagerPingSource[] sources)
sources
- int getIdlePingMillis()
int getCurrentPingMillis()
int getMaxPingMillis()
int getCurrentChokeSpeed()
int getMaxUploadSpeed()
boolean getAdjustsDownloadLimits()
void destroy()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |