Class IrReceiverComponent.PollerManager

java.lang.Object
com.pi4j.crowpi.components.IrReceiverComponent.PollerManager
All Implemented Interfaces:
Runnable
Enclosing class:
IrReceiverComponent

protected final class IrReceiverComponent.PollerManager extends Object implements Runnable
Poller manager class which implements Runnable and should be ran in a separate thread. This poller manager will automatically launch a poller process and thread and monitors them. In case either the poller process or thread dies, it will be automatically restarted. This thread continues to run until the interrupted flag gets set.
  • Constructor Details

    • PollerManager

      protected PollerManager()
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
    • getPollerProcess

      protected IrReceiverComponent.PollerProcess getPollerProcess()
      Returns the current poller process managed by this poller manager or null if not running.
      Returns:
      Instance of poller process