Class RealTimeInfo
java.lang.Object
com.biglybt.core.util.RealTimeInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static longprivate static int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic longGives the currently active progressive download's speed if there is one, 0 otherwisestatic booleanstatic voidstatic voidsetProgressiveActive(long bytes_per_sec) static void
-
Field Details
-
realtime_task_count
private static volatile int realtime_task_count -
progressive_bytes_per_sec
private static volatile long progressive_bytes_per_sec
-
-
Constructor Details
-
RealTimeInfo
public RealTimeInfo()
-
-
Method Details
-
addRealTimeTask
public static void addRealTimeTask() -
removeRealTimeTask
public static void removeRealTimeTask() -
isRealTimeTaskActive
public static boolean isRealTimeTaskActive() -
setProgressiveActive
public static void setProgressiveActive(long bytes_per_sec) -
setProgressiveInactive
public static void setProgressiveInactive() -
getProgressiveActiveBytesPerSec
public static long getProgressiveActiveBytesPerSec()Gives the currently active progressive download's speed if there is one, 0 otherwise- Returns:
-