Class ConfigManager
- java.lang.Object
-
- com.facebook.openwifi.rrm.modules.ConfigManager
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceConfigManager.ConfigListenerConfig listener interface.
-
Constructor Summary
Constructors Constructor Description ConfigManager(RRMConfig.ModuleConfig.ConfigManagerParams params, DeviceDataManager deviceDataManager, UCentralClient client)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddConfigListener(String id, ConfigManager.ConfigListener listener)Add/overwrite a config listener with an arbitrary identifier.voidqueueAllZonesAndWakeUp()Track all zones to be updated, then interrupt the main thread to possibly trigger an update immediately.voidqueueZoneAndWakeUp(String zone)Mark the zone to be updated, then interrupt the main thread to possibly trigger an update immediately.booleanremoveConfigListener(String id)Remove a config listener with the given identifier, returning true if anything was actually removed.voidrun()
-
-
-
Constructor Detail
-
ConfigManager
public ConfigManager(RRMConfig.ModuleConfig.ConfigManagerParams params, DeviceDataManager deviceDataManager, UCentralClient client)
Constructor.
-
-
Method Detail
-
addConfigListener
public void addConfigListener(String id, ConfigManager.ConfigListener listener)
Add/overwrite a config listener with an arbitrary identifier. The "id" string determines the order in which listeners are called.
-
removeConfigListener
public boolean removeConfigListener(String id)
Remove a config listener with the given identifier, returning true if anything was actually removed.
-
queueZoneAndWakeUp
public void queueZoneAndWakeUp(String zone)
Mark the zone to be updated, then interrupt the main thread to possibly trigger an update immediately.- Parameters:
zone- non-null zone (i.e., venue)
-
queueAllZonesAndWakeUp
public void queueAllZonesAndWakeUp()
Track all zones to be updated, then interrupt the main thread to possibly trigger an update immediately.
-
-