Class ReadWorker

java.lang.Object
io.openems.common.worker.AbstractWorker
io.openems.edge.evcs.keba.kecontact.ReadWorker

public class ReadWorker extends AbstractWorker
  • Constructor Details

  • Method Details

    • activate

      public void activate(String name)
      Description copied from class: AbstractWorker
      Initializes the worker and starts the worker thread.
      Overrides:
      activate in class AbstractWorker
      Parameters:
      name - the name of the worker thread
    • deactivate

      public void deactivate()
      Description copied from class: AbstractWorker
      Stops the worker thread.
      Overrides:
      deactivate in class AbstractWorker
    • forever

      protected void forever() throws 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:
      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:
      the cycleTime
    • triggerNextRun

      public void triggerNextRun()
      Description copied from class: AbstractWorker
      Allows the next execution of the forever() method.
      Overrides:
      triggerNextRun in class AbstractWorker