Class EdgeConfigWorker

  • All Implemented Interfaces:
    org.osgi.service.cm.ConfigurationListener

    public class EdgeConfigWorker
    extends ComponentManagerWorker
    This Worker constantly checks if EdgeConfig was updated, e.g. because configuration properties changed or Channels changed. If an update was recognized, an event is announced.
    • Method Detail

      • forever

        protected void forever()
        Description copied from class: AbstractWorker
        This method is called in a loop forever until the Thread gets interrupted.
        Specified by:
        forever in class AbstractWorker
      • getEdgeConfig

        public EdgeConfig getEdgeConfig()
        Gets the EdgeConfig object; updates the cache if necessary and publishes a CONFIG_UPDATE event on update.
        Returns:
        the EdgeConfig
      • getCycleTime

        protected int getCycleTime()
        Description copied from class: AbstractWorker
        Gets the cycleTime of this worker in [ms].
        • > 0 sets the minimum execution time of one Cycle
        • = 0 never wait between two consecutive executions of forever()
        • < 0 causes the Cycle to sleep forever until 'triggerNextRun()' is called
        Specified by:
        getCycleTime in class AbstractWorker
        Returns:
      • configurationEvent

        public void configurationEvent​(org.osgi.service.cm.ConfigurationEvent event)
        Specified by:
        configurationEvent in interface org.osgi.service.cm.ConfigurationListener
        Overrides:
        configurationEvent in class ComponentManagerWorker