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