Package com.biglybt.core.util
Class AERunStateHandler
- java.lang.Object
-
- com.biglybt.core.util.AERunStateHandler
-
public class AERunStateHandler extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
AERunStateHandler.RunStateChangeListener
-
Field Summary
Fields Modifier and Type Field Description private static long
current_mode
private static AsyncDispatcher
dispatcher
private static CopyOnWriteList<AERunStateHandler.RunStateChangeListener>
listeners
static long
RS_ALL_ACTIVE
static long
RS_ALL_LOW
static long
RS_DELAYED_UI
static long
RS_DHT_SLEEPING
static java.lang.String[]
RS_MODE_NAMES
static long[]
RS_MODES
static long
RS_UDP_NET_ONLY
private static boolean
start_low
-
Constructor Summary
Constructors Constructor Description AERunStateHandler()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addListener(AERunStateHandler.RunStateChangeListener l, boolean fire_now)
static long
getResourceMode()
static boolean
isDelayedUI()
static boolean
isDHTSleeping()
static boolean
isUDPNetworkOnly()
static void
removeListener(AERunStateHandler.RunStateChangeListener l)
static void
setDHTSleeping(boolean b)
static void
setResourceMode(long new_mode)
private static void
setState(long flag, boolean on)
-
-
-
Field Detail
-
RS_DELAYED_UI
public static final long RS_DELAYED_UI
- See Also:
- Constant Field Values
-
RS_UDP_NET_ONLY
public static final long RS_UDP_NET_ONLY
- See Also:
- Constant Field Values
-
RS_DHT_SLEEPING
public static final long RS_DHT_SLEEPING
- See Also:
- Constant Field Values
-
RS_ALL_ACTIVE
public static final long RS_ALL_ACTIVE
- See Also:
- Constant Field Values
-
RS_ALL_LOW
public static final long RS_ALL_LOW
- See Also:
- Constant Field Values
-
RS_MODES
public static final long[] RS_MODES
-
RS_MODE_NAMES
public static final java.lang.String[] RS_MODE_NAMES
-
start_low
private static final boolean start_low
-
current_mode
private static long current_mode
-
dispatcher
private static final AsyncDispatcher dispatcher
-
listeners
private static final CopyOnWriteList<AERunStateHandler.RunStateChangeListener> listeners
-
-
Method Detail
-
isDelayedUI
public static boolean isDelayedUI()
-
isUDPNetworkOnly
public static boolean isUDPNetworkOnly()
-
isDHTSleeping
public static boolean isDHTSleeping()
-
setDHTSleeping
public static void setDHTSleeping(boolean b)
-
setState
private static void setState(long flag, boolean on)
-
getResourceMode
public static long getResourceMode()
-
setResourceMode
public static void setResourceMode(long new_mode)
-
addListener
public static void addListener(AERunStateHandler.RunStateChangeListener l, boolean fire_now)
-
removeListener
public static void removeListener(AERunStateHandler.RunStateChangeListener l)
-
-