Class ConfigManager

  • All Implemented Interfaces:
    Runnable

    public class ConfigManager
    extends Object
    implements Runnable
    Device configuration manager module.
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface Runnable
      • 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.