Class ReadWorker

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void activate​(java.lang.String name)
      Initializes the worker and starts the worker thread
      void deactivate()
      Stops the worker thread
      protected void forever()
      This method is called in a loop forever until the Thread gets interrupted.
      protected int getCycleTime()
      Gets the cycleTime of this worker in [ms].
      void triggerNextRun()
      Allows the next execution of the forever() method.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • activate

        public void activate​(java.lang.String name)
        Description copied from class: AbstractWorker
        Initializes the worker and starts the worker thread
        Overrides:
        activate in class AbstractWorker
      • forever

        protected void forever()
                        throws java.lang.InterruptedException
        Description copied from class: AbstractWorker
        This method is called in a loop forever until the Thread gets interrupted.
        Specified by:
        forever in class AbstractWorker
        Throws:
        java.lang.InterruptedException
      • 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: