Class PingSpaceMon
java.lang.Object
com.biglybt.core.speedmanager.impl.v2.PingSpaceMon
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(PSMonitorListener listener) (package private) boolean
static SpeedManagerLimitEstimate
Get the estimated download capacity from the SpeedManager.static SpeedManagerLimitEstimate
Get the current estimated download limit from the ping mapper.static SpeedManagerLimitEstimate
static SpeedManagerLimitEstimate
getUploadLimit
(boolean persistent) Get the current estimated upload limit from the ping mapper.boolean
removeListener
(PSMonitorListener listener) (package private) void
(package private) boolean
updateStatus
(TransferMode tMode)
-
Field Details
-
INTERVAL
private static final long INTERVAL- See Also:
-
nextCheck
long nextCheck -
mode
TransferMode mode -
listeners
-
-
Constructor Details
-
PingSpaceMon
public PingSpaceMon()
-
-
Method Details
-
addListener
-
removeListener
-
checkForLowerLimits
boolean checkForLowerLimits() -
updateStatus
- Parameters:
tMode
- -- Returns:
- - true if is has a new mode, and the clock starts over.
-
resetTimer
void resetTimer() -
getUploadLimit
Get the current estimated upload limit from the ping mapper.- Returns:
- - SpeedManagerLimitEstimate.
-
getUploadEstCapacity
-
getDownloadLimit
Get the current estimated download limit from the ping mapper.- Returns:
- - SpeedManagerLimitEstimate
-
getDownloadEstCapacity
Get the estimated download capacity from the SpeedManager.- Returns:
- - SpeedManagerLimitEstimate
-