Class ConfigManager
- java.lang.Object
-
- com.facebook.openwifi.rrm.modules.ConfigManager
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ConfigManager.ConfigListener
Config 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 void
addConfigListener(String id, ConfigManager.ConfigListener listener)
Add/overwrite a config listener with an arbitrary identifier.void
queueAllZonesAndWakeUp()
Track all zones to be updated, then interrupt the main thread to possibly trigger an update immediately.void
queueZoneAndWakeUp(String zone)
Mark the zone to be updated, then interrupt the main thread to possibly trigger an update immediately.boolean
removeConfigListener(String id)
Remove a config listener with the given identifier, returning true if anything was actually removed.void
run()
-
-
-
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.
-
-