Class Updater

  • All Implemented Interfaces:
    java.lang.Runnable

    public class Updater
    extends java.lang.Thread
    A thread which calls Update method of compliance configured Thing at certain time interval. List of Normal polling properties is passed as a parameter to Update method, which are the need to be updated.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.lang.Thread

        java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
    • Field Summary

      • Fields inherited from class java.lang.Thread

        MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
    • Constructor Summary

      Constructors 
      Constructor Description
      Updater()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()  
      static void startOrInterrupt​(com.gears42.iot.webthing.WebThingServer.ThingsType thingsList)
      Start or interrupt Updater.
      static void stopUpdater()
      Stop Updater.
      • Methods inherited from class java.lang.Thread

        activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Updater

        public Updater()
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
        Overrides:
        run in class java.lang.Thread
      • startOrInterrupt

        public static void startOrInterrupt​(com.gears42.iot.webthing.WebThingServer.ThingsType thingsList)
        Start or interrupt Updater.
        Parameters:
        thingsList - list of things enrolled
      • stopUpdater

        public static void stopUpdater()
        Stop Updater.